Commits on May 20, 2012
  1. Correct various things to pass codingstd_tests

    Fix trailing whitespace, whitespace near parens, cuddled elses and line
    nbrown committed May 20, 2012
Commits on May 19, 2012
  1. Update debugger help text

    nbrown committed May 19, 2012
  2. Add initial breakpoint support

    Add debugger ops to add a breakpoint, list all breakpoints and a function
    to check if the line about to be executed has a breakpoint.
    nbrown committed May 19, 2012
Commits on May 18, 2012
  1. Add make target m0_c_debugger_tests

    Add a make target to run the cm0 debugger tests and add 1 simple test.
    nbrown committed May 18, 2012
  2. Add logic to get a script filename from the commandline

    Search argv for "-s" and if it's found load the next arg as the debugger
    script filename.
    nbrown committed May 18, 2012
Commits on May 17, 2012
  1. Add the backend to support debugger scripting

    Add a char* field to the M0_Debugger_Info struct to store the name of the
    script file. Also, change the get_db_user_input function to read data from
    stdin or the script file as appropriate.
    nbrown committed May 17, 2012
Commits on May 9, 2012
  1. Refactor parsing of user inputs & repeat previous command on enter ke…

    …y press
    Refactor parsing of user inputs to isolate string parsing and create an
    enumeration of debugger commands.
    Also, now pressing enter re-runs the previous command, a la gdb. cotto++ for
    suggesting this.
    nbrown committed May 9, 2012
Commits on May 8, 2012
  1. Autogenerate the ops list for m0_ops.h and m0_debugger.h

    Add a way to generate ops lists for C files, add m0_ops.h and m0_debugger.h to
    the list of files to process and add templates to m0_ops.h and m0_debugger.h.
    nbrown committed May 8, 2012
  2. Add debugger print commands

    Add debugger commands and appropriate help text:
    * p  ARG - prints ARG as hex
    * ps ARG - prints ARG as a string
    * pi ARG - prints ARG as an integer
    * pn ARG - prints ARG as a float
    NOTE: ARG must be a register name spelled in all caps
    nbrown committed May 8, 2012
Commits on May 7, 2012
  1. Add an initial take on a simple m0-debugger

    The debugger is very simple and supports the following commands:
    * s - single step
    * c - continue
    * l - list the disassembled source code for the line about to be executed
    * h - help
    * Placeholders for a few more debugger commands
    The debugger can be built using 'make m0_debugger'
    nbrown committed May 7, 2012
Commits on May 2, 2012
  1. add a debugging macro for c-m0

    cotto committed May 2, 2012
Commits on May 1, 2012
  1. Make interp_argv be uint64_t* instead of char**

    The pointers in interp_argv need to be uniformly 8 bytes each. This will
    make m0_args_basic access the correct argument.
    nbrown committed May 1, 2012
Commits on Apr 30, 2012