1 / 8

RML setting and debugging crashcourse

RML setting and debugging crashcourse. Adrian Pop PELAB/IDA/LiU adrpo@ida.liu.se. Assumptions. Things you should already know a bit of Unix-like environments Makefile writing Emacs. rml-mode for Emacs. rml = your rml directory rml/elisp/rml-mode.el /home/you/.emacs

ursula
Download Presentation

RML setting and debugging crashcourse

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RML setting and debugging crashcourse Adrian Pop PELAB/IDA/LiU adrpo@ida.liu.se

  2. Assumptions • Things you should already know a bit of • Unix-like environments • Makefile writing • Emacs

  3. rml-mode for Emacs • rml = your rml directory • rml/elisp/rml-mode.el • /home/you/.emacs • add these in .emacs (setq load-path (cons “rml/elisp/” load-path)) (setq auto-mode-alist (cons ‘(“\\.rml$” . rml-mode) auto-mode-alist)) (global-font-lock-mode) (autoload ‘rml-mode “rml-mode” “RML editing mode.” t)

  4. loading rml debugger mode in Emacs • rml = your rml directory • rml/elisp/rml-db.el • /home/you/.emacs • add this in .emacs (load-file “rml/elisp/rml-db.el”)

  5. building your rml project in debug mode • use rmlc flags: -g when compiling .rml files • link with: • flags –lrml_g instead of –lrml • you may need also –lfl and -lreadline • if you use rmlc to compile/link the C files then you don’t need to bother about linking because it does it automatically • the program you build in debug mode has the debugger included in it.

  6. using Emacs to debug your program • write a small wrapper for your program and name it run-program.sh #!/bin/sh ./your_program its_parameters #-- end here • don’t forget to make it executable: chmod +x run-program.sh • then run emacs in that directory: • emacs ./your_rml_file.rml • in Emacs: M=ALT or M=Esc then x • M-x rmldb <ENTER>

  7. using RMLDataTree browser • the browser resides in rml/RMLDataTree • run it with: java –cp . RMLDataTree path_to_rml_files

  8. Information • Short documentation rml/doc/DEBUG.txt • Small Website with RML info: • http://www.ida.liu.se/~adrpo/teaching/sstpl/ • you can find also this presentation there • Contact, if you get stuck: • Adrian Pop, adrpo@ida.liu.se

More Related