[parrot/parrot] 04ca15: Add an initial take on a simple m0-debugger
GitHub
noreply at github.com
Mon May 28 14:02:49 UTC 2012
Branch: refs/heads/m0-debugger
Home: https://github.com/parrot/parrot
Commit: 04ca15e66319f8a33101be80360a5d1adf135c19
https://github.com/parrot/parrot/commit/04ca15e66319f8a33101be80360a5d1adf135c19
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-06 (Sun, 06 May 2012)
Changed paths:
M config/gen/makefiles/root.in
A src/m0/c/include/m0_debugger.h
A src/m0/c/m0_debugger.c
M src/m0/c/m0_ops.c
Log Message:
-----------
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'
Commit: 2ecac89d548c9bc40c488879e84fa21d4c989236
https://github.com/parrot/parrot/commit/2ecac89d548c9bc40c488879e84fa21d4c989236
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-07 (Mon, 07 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
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
Commit: 7f8e44662ed065580c29b40589d51c456333cdbf
https://github.com/parrot/parrot/commit/7f8e44662ed065580c29b40589d51c456333cdbf
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-07 (Mon, 07 May 2012)
Changed paths:
M src/m0/c/include/m0_ops.h
M src/m0/c/m0_debugger.c
M tools/dev/m0_opcheck.pl
Log Message:
-----------
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.
Commit: 76a90b6ded39b19aa56446a0b9b2b45f79992182
https://github.com/parrot/parrot/commit/76a90b6ded39b19aa56446a0b9b2b45f79992182
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-07 (Mon, 07 May 2012)
Changed paths:
M src/m0/c/include/m0_ops.h
M src/m0/c/m0_debugger.c
M src/m0/c/m0_ops.c
Log Message:
-----------
Use the correct names for the convert_i_n and convert_n_i ops
Commit: edb5cda9a3172cd837056e274ce93c87a453e2e8
https://github.com/parrot/parrot/commit/edb5cda9a3172cd837056e274ce93c87a453e2e8
Author: Nathan C. Brown <nbrown04 at gmail.com>
Date: 2012-05-08 (Tue, 08 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Only copy the string if there is a string
Commit: 9fd6a7b8fcb40078cc7212d6ce02b6938161c22b
https://github.com/parrot/parrot/commit/9fd6a7b8fcb40078cc7212d6ce02b6938161c22b
Author: Nathan C. Brown <nbrown04 at gmail.com>
Date: 2012-05-08 (Tue, 08 May 2012)
Changed paths:
M src/m0/c/include/m0_debugger.h
M src/m0/c/m0_debugger.c
Log Message:
-----------
Refactor parsing of user inputs & repeat previous command on enter key 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.
Commit: dc77318ac138bd2efb7ff665fe75b8092547931b
https://github.com/parrot/parrot/commit/dc77318ac138bd2efb7ff665fe75b8092547931b
Author: Nathan C. Brown <nbrown04 at gmail.com>
Date: 2012-05-08 (Tue, 08 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Remove redundant calls to debug_print
Commit: e8f42db141f2af58fb1da5c787fd0c51481c8c6b
https://github.com/parrot/parrot/commit/e8f42db141f2af58fb1da5c787fd0c51481c8c6b
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-16 (Wed, 16 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Move variable declaration for C89 compilers
Commit: 21abf5f91f93e5f882a68f0d734397ca5c23d390
https://github.com/parrot/parrot/commit/21abf5f91f93e5f882a68f0d734397ca5c23d390
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-16 (Wed, 16 May 2012)
Changed paths:
M src/m0/c/include/m0_debugger.h
M src/m0/c/m0_debugger.c
Log Message:
-----------
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.
Commit: 40117199f071a5be6f1fb21f19e44fb3e8bf8995
https://github.com/parrot/parrot/commit/40117199f071a5be6f1fb21f19e44fb3e8bf8995
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-17 (Thu, 17 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
If at the end of the script file, close the script file
Commit: 6544c8828172dca4f04b1cdc168ea956b7a94e3e
https://github.com/parrot/parrot/commit/6544c8828172dca4f04b1cdc168ea956b7a94e3e
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-17 (Thu, 17 May 2012)
Changed paths:
M src/m0/c/include/m0_debugger.h
M src/m0/c/m0_debugger.c
M src/m0/c/m0_interp.c
M src/m0/c/m0_ops.c
Log Message:
-----------
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.
Commit: c03af381f3836626a87f0d51b4b4bdf28b4e1405
https://github.com/parrot/parrot/commit/c03af381f3836626a87f0d51b4b4bdf28b4e1405
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-17 (Thu, 17 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Print the debugger command if it's from a script
Commit: f6adcdb0b43d5869313690bd557828134fd1c546
https://github.com/parrot/parrot/commit/f6adcdb0b43d5869313690bd557828134fd1c546
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-17 (Thu, 17 May 2012)
Changed paths:
M config/gen/makefiles/root.in
A t/m0/debugger/01_simple.in
A t/m0/debugger/01_simple.out
A t/m0/m0_debugger.t
Log Message:
-----------
Add make target m0_c_debugger_tests
Add a make target to run the cm0 debugger tests and add 1 simple test.
Commit: 66cce06570b918f37cffd297cd4cec37a9676230
https://github.com/parrot/parrot/commit/66cce06570b918f37cffd297cd4cec37a9676230
Author: Nathan C. Brown <nbrown04 at gmail.com>
Date: 2012-05-17 (Thu, 17 May 2012)
Changed paths:
M t/m0/m0_debugger.t
Log Message:
-----------
Don't use .exe by default in debugger test
Commit: 09a47a14c65bf94a48952a92606c9a3a15aa7bb5
https://github.com/parrot/parrot/commit/09a47a14c65bf94a48952a92606c9a3a15aa7bb5
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-18 (Fri, 18 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
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.
Commit: 76d7adfb2ec89308c133c3be75429183e6793f6d
https://github.com/parrot/parrot/commit/76d7adfb2ec89308c133c3be75429183e6793f6d
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-19 (Sat, 19 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Add a delete breakpoint debugger op
Commit: 063e402f2970d9d8a2f92da1760c9ad43f389e06
https://github.com/parrot/parrot/commit/063e402f2970d9d8a2f92da1760c9ad43f389e06
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-19 (Sat, 19 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Update debugger help text
Commit: 85000e974c0add9830e186db574f4ed638fbe6da
https://github.com/parrot/parrot/commit/85000e974c0add9830e186db574f4ed638fbe6da
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-19 (Sat, 19 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Correct printf format to remove compiler warning
Commit: 542234b0747a0149ec8fc68aa783ea964014ccbd
https://github.com/parrot/parrot/commit/542234b0747a0149ec8fc68aa783ea964014ccbd
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-19 (Sat, 19 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Refactor the debugger get_*input functions
Commit: 18827d07cfa7953a04436867519b662a0d0e19a9
https://github.com/parrot/parrot/commit/18827d07cfa7953a04436867519b662a0d0e19a9
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-19 (Sat, 19 May 2012)
Changed paths:
M src/m0/c/m0_debugger.c
Log Message:
-----------
Fix delete all breakpoints and add help
Commit: a9d6fd413e79c0d616ca5fb334ef101fbe5708b2
https://github.com/parrot/parrot/commit/a9d6fd413e79c0d616ca5fb334ef101fbe5708b2
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-19 (Sat, 19 May 2012)
Changed paths:
M src/m0/c/include/m0.h
M src/m0/c/include/m0_compiler_defines.h
M src/m0/c/include/m0_constants.h
M src/m0/c/include/m0_debugger.h
M src/m0/c/include/m0_interp.h
M src/m0/c/include/m0_interp_structures.h
M src/m0/c/include/m0_mob.h
M src/m0/c/include/m0_mob_structures.h
M src/m0/c/include/m0_ops.h
M src/m0/c/m0_debugger.c
M src/m0/c/m0_interp.c
M src/m0/c/m0_mob.c
M src/m0/c/m0_ops.c
Log Message:
-----------
Fix the coda in cm0 files [codingstd_tests]
Commit: c201ff91cb8ed11db9021c3028475c63ab498aa6
https://github.com/parrot/parrot/commit/c201ff91cb8ed11db9021c3028475c63ab498aa6
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-19 (Sat, 19 May 2012)
Changed paths:
M src/m0/c/include/m0.h
M src/m0/c/include/m0_compiler_defines.h
M src/m0/c/include/m0_constants.h
M src/m0/c/include/m0_debugger.h
M src/m0/c/include/m0_interp.h
M src/m0/c/include/m0_interp_structures.h
M src/m0/c/include/m0_mob.h
M src/m0/c/include/m0_mob_structures.h
M src/m0/c/include/m0_ops.h
M src/m0/c/m0_ops.c
Log Message:
-----------
Fix c_indent in m0 files [codingstd_tests]
Commit: 8eeaa67a18a2ae76b5f32a5529cc37886fab8e1e
https://github.com/parrot/parrot/commit/8eeaa67a18a2ae76b5f32a5529cc37886fab8e1e
Author: nbrown <nbrown04 at gmail.com>
Date: 2012-05-20 (Sun, 20 May 2012)
Changed paths:
M config/gen/makefiles/root.in
M src/m0/c/include/m0_mob.h
M src/m0/c/include/m0_ops.h
M src/m0/c/m0_debugger.c
M src/m0/c/m0_interp.c
M src/m0/c/m0_mob.c
M src/m0/c/m0_ops.c
M src/m0/perl5/m0_assembler.pl
M src/m0/perl5/m0_interp.pl
M t/m0/m0_bytecode_loading.t
Log Message:
-----------
Correct various things to pass codingstd_tests
Fix trailing whitespace, whitespace near parens, cuddled elses and line
lengths.
Compare: https://github.com/parrot/parrot/compare/04ca15e^...8eeaa67
More information about the parrot-commits
mailing list