<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>5.1.7 Interfacing SDCDB with XEmacs</TITLE> <META NAME="description" CONTENT="5.1.7 Interfacing SDCDB with XEmacs"> <META NAME="keywords" CONTENT="sdccman"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2008"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="sdccman.css"> <LINK REL="previous" HREF="node146.html"> <LINK REL="up" HREF="node140.html"> <LINK REL="next" HREF="node148.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html3005" HREF="node148.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html2999" HREF="node140.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html2995" HREF="node146.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3001" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3003" HREF="node191.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3006" HREF="node148.html">6. TIPS</A> <B> Up:</B> <A NAME="tex2html3000" HREF="node140.html">5.1 Debugging with SDCDB</A> <B> Previous:</B> <A NAME="tex2html2996" HREF="node146.html">5.1.6 Interfacing SDCDB with</A> <B> <A NAME="tex2html3002" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3004" HREF="node191.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00617000000000000000"></A><A NAME="3571"></A><A NAME="3572"></A> <BR> 5.1.7 Interfacing SDCDB with XEmacs </H2> <P> 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): <BR> <BR><TT>(load-file sdcdbsrc.el)</TT> <BR> <BR>.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: <BR> <BR><I><B>ESC-x sdcdbsrc</B></I> <BR> <BR> You will prompted to enter the file name to be debugged. <BR> <BR> 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. <UL> <LI>sdcdbsrc-cpu-type '51 </LI> <LI>sdcdbsrc-frequency '11059200 </LI> <LI>sdcdbsrc-serial nil </LI> </UL> The following is a list of key mapping for the debugger interface. <P> <BR><TT>;; Current Listing :: </TT> <BR><TT>;;key binding Comment </TT> <BR><TT>;;-- ---- ----</TT> <BR><TT>;; </TT> <BR><TT>;; n sdcdb-next-from-src SDCDB next command </TT> <BR><TT>;; b sdcdb-back-from-src SDCDB back command </TT> <BR><TT>;; c sdcdb-cont-from-src SDCDB continue command</TT> <BR><TT>;; s sdcdb-step-from-src SDCDB step command </TT> <BR><TT>;; ? sdcdb-whatis-c-sexp SDCDB ptypecommand for data at </TT> <BR><TT>;; buffer point </TT> <BR><TT>;; x sdcdbsrc-delete SDCDB Delete all breakpoints if no arg </TT> <BR><TT>;; given or delete arg (C-u arg x) </TT> <BR><TT>;; m sdcdbsrc-frame SDCDB Display current frame if no arg, </TT> <BR><TT>;; given or display frame arg </TT> <BR><TT>;; buffer point </TT> <BR><TT>;; ! sdcdbsrc-goto-sdcdb Goto the SDCDB output buffer </TT> <BR><TT>;; p sdcdb-print-c-sexp SDCDB print command for data at </TT> <BR><TT>;; buffer point </TT> <BR><TT>;; g sdcdbsrc-goto-sdcdb Goto the SDCDB output buffer </TT> <BR><TT>;; t sdcdbsrc-mode Toggles Sdcdbsrc mode (turns it off) </TT> <BR><TT>;; </TT> <BR><TT>;; C-c C-f sdcdb-finish-from-src SDCDB finish command </TT> <BR><TT>;; </TT> <BR><TT>;; C-x SPC sdcdb-break Set break for line with point </TT> <BR><TT>;; ESC t sdcdbsrc-mode Toggle Sdcdbsrc mode </TT> <BR><TT>;; ESC m sdcdbsrc-srcmode Toggle list mode </TT> <BR><TT>;; </TT> <BR> <P> <HR> <!--Navigation Panel--> <A NAME="tex2html3005" HREF="node148.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html2999" HREF="node140.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html2995" HREF="node146.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3001" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3003" HREF="node191.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3006" HREF="node148.html">6. TIPS</A> <B> Up:</B> <A NAME="tex2html3000" HREF="node140.html">5.1 Debugging with SDCDB</A> <B> Previous:</B> <A NAME="tex2html2996" HREF="node146.html">5.1.6 Interfacing SDCDB with</A> <B> <A NAME="tex2html3002" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3004" HREF="node191.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> 2011-03-20 </ADDRESS> </BODY> </HTML>