aboutsummaryrefslogtreecommitdiff
path: root/debug
AgeCommit message (Collapse)AuthorFilesLines
2016-10-14Wait for OpenOCD to start fully before connecting.Tim Newsome1-0/+15
Requires OpenOCD change 4eba841bfee4b6c347423ac28851ab7ee7e75532
2016-10-13Add MemTestWriteInvalid.Tim Newsome1-1/+13
2016-10-03Add test for memory read from invalid address.Tim Newsome2-0/+12
2016-09-30Tolerate remotes that return memory read errors.Tim Newsome1-1/+9
2016-09-29Update dmode test to match spec.Tim Newsome2-46/+101
M-mode writes to triggers with dmode set are now ignored instead of raising an exception. Also added -f/--fail-fast option to gdbserver.
2016-09-29Clear triggers during entry.Tim Newsome1-0/+9
If the last test leaves some triggers set they should be cleaned up.
2016-09-28Disable TriggerDmode while spike is changed.Tim Newsome1-0/+4
2016-09-20Minor tweaks to trigger tests for openocd.Tim Newsome2-10/+16
2016-09-15Rewrite debug testing.Tim Newsome4-264/+762
No longer use unittest. Now tests can return not_applicable if eg. a desired execution mode isn't implemented on a target. Also we do a better job killing spike processes when a test fails. Did a lot of code cleanup, partly by using pylint. Fix the Makefile so that if the test fails, 'make' actually fails too.
2016-09-02Fix/add to instant trigger tests.Tim Newsome2-6/+23
2016-09-02Limit spike RAM so I can run valgrind on it.Tim Newsome1-0/+1
2016-09-01Add some immediate trigger tests.Tim Newsome2-6/+23
2016-09-01Create TriggerTest.Tim Newsome2-21/+136
2016-09-01Add test for address triggers.Tim Newsome2-1/+29
2016-09-01Remove "import ." notation.Tim Newsome1-1/+1
Doesn't work with Python 2.7.9 which is the default in latest Debian.
2016-08-23Use a version range.Richard Xia1-1/+1
2016-08-22Add requirements.txt and reorder imports by type.Richard Xia3-4/+6
2016-08-22Use env shebang so for virtualenv compatibility.Tim Newsome1-1/+1
2016-08-16Fix missing setup in test_turbostep.Tim Newsome1-0/+2
2016-08-16Simplify test_function_call.Tim Newsome2-3/+20
Now it doesn't rely on malloc, which can be tricky to get to work in and of itself.
2016-08-15Add --32 and --64 options to gdbserver.py.Tim Newsome1-4/+17
2016-08-15Fix cut and paste bug.Tim Newsome1-5/+5
Also minor style changes.
2016-08-11Merge pull request #21 from sifive/add_freedom_sim_targetsTim Newsome10-49/+274
Add freedom sim targets
2016-08-11Add FreedomU500 & incorporate feedbackMegan Wachs6-68/+96
2016-08-11Make simple memory test errors more readable.Tim Newsome1-1/+5
2016-08-08By default debug=FalseMegan Wachs1-2/+2
2016-08-08Add U500 TargetMegan Wachs3-2/+72
2016-08-08Some code cleanupMegan Wachs3-6/+5
2016-08-08Added FreedomE300 Simulator targetMegan Wachs5-10/+138
2016-07-28Add tests for virtual priv register.Tim Newsome2-0/+63
Users can use this register to inspect and change the privilege level of the core. It doesn't make any assumptions about the actual underlying debug mechanism (as opposed to having the user change DCSR directly, which may not exist in all debug implementations).
2016-07-28Add --gdb argument so I can run valgrind on gdb.Tim Newsome3-14/+25
2016-07-27Rename m2gl_m2s to freedom-e300. (#19)Tim Newsome3-3/+3
It's possible to flash the Freedom E300 onto different FPGA boards, and then debug them in the exact same way.
2016-07-25Display log file during build if testing fails.Tim Newsome3-16/+12
That way somebody doesn't need to spend forever trying to reproduce a travis failure when all they really need is the logfile.
2016-07-19Run debug tests from main Makefile.Tim Newsome1-2/+8
2016-07-19Use unique filenames for block test.Tim Newsome1-6/+7
Fixes occasional failure when multiple tests are run at once.
2016-07-19Add 32-bit support.Tim Newsome1-1/+9
2016-07-19Be verbose, since output is going to a log file.Tim Newsome1-2/+2
2016-07-19Add Makefile.Tim Newsome3-19/+42
Add --isolate argument which enables the 32- and 64-bit spikes to be tested simultaneously.
2016-07-19Fix test_instant_halt.Tim Newsome1-5/+27
Only check for things that the spec guarantees when coming out of reset.
2016-07-19Fix test_block for 64-bit targets.Tim Newsome1-1/+1
2016-07-19Fix test_32 on 64-bit targets.Tim Newsome1-1/+3
2016-07-19Only run hwbp tests on targets that support them.Tim Newsome1-0/+9
2016-07-19Tell gdb what xlen is when there's no ELF file.Tim Newsome1-0/+6
This makes several spike32 tests pass that used to fail. Ideally gdb wouldn't need to be told, but that's a project for another day.
2016-07-19flush spike log after initial write.Tim Newsome1-0/+1
This makes sure the execution line is the first one in the logfile.
2016-07-19I think I've finally got malloc working right.Tim Newsome5-14/+27
Now gdb can call functions and change strings.
2016-07-19Make variables local again, now that gdb is "fixed."Tim Newsome1-6/+2
2016-07-19Add test for gdb function calls.Tim Newsome3-1/+613
2016-07-18Test step over invalid instruction.Tim Newsome2-9/+16
2016-07-18Turn off debugging.Tim Newsome1-1/+1
2016-07-18Remove hardware breakpoints so future tests work.Tim Newsome1-0/+3