Commit Graph

171 Commits

Author SHA1 Message Date
Jeffrey Pfau 3a15553c09 All: Reset next event to cycles instead of zero to interrupt 2015-10-05 19:20:17 -07:00
Jeffrey Pfau 76663c41cd Util: Migrate popcount32 to a header 2015-08-19 01:29:21 -07:00
Jeffrey Pfau 3a9ac188d4 Debugger: Fix use-after-free in breakpoint clearing code (again) 2015-08-15 22:12:26 -07:00
Jeffrey Pfau c9c9ff802c Debugger: Only support breaking into the external debugger in debug builds 2015-08-08 02:26:35 -07:00
Anthony J. Bentley 7506bf8f19 Debugger: Accept break/a, break/t 2015-07-29 02:08:36 -06:00
Augustin Cavalier fc74db8c09 All: Initial work on MSVC support. 2015-06-30 22:09:17 -04:00
Jeffrey Pfau 908e61f415 All: Add clang-format options and run them 2015-06-29 20:45:08 -07:00
Jeffrey Pfau 12505766e1 All: MSVS2015 fixes (via zeromus) 2015-06-06 21:43:24 -07:00
Jeffrey Pfau 47d945bf75 All: Make version.c 2015-05-15 08:56:28 -07:00
Jeffrey Pfau 3ae3b292ee Debugger: Fix boundary conditions in tab completion 2015-04-23 23:54:35 -07:00
Jeffrey Pfau c4aedfa69a Debugger: Free watchpoints in addition to breakpoints 2015-04-22 21:24:56 -07:00
Jeffrey Pfau 2666c77837 Debugger: Fix use-after-free in breakpoint clearing code 2015-04-22 21:24:02 -07:00
Jeffrey Pfau 86bf02b9d5 Debugger: Fix uninitialized variables 2015-04-22 20:42:32 -07:00
Jeffrey Pfau 31d39bbd1d Debugger: Fix software breakpoints not being properly initialized 2015-03-01 12:16:38 -08:00
Jeffrey Pfau a0b94db9a7 All: Fix *nix build 2015-02-23 23:49:40 -08:00
Jeffrey Pfau 5d1b05c990 Debugger: Use new SocketWouldBlock layer 2015-02-23 23:29:01 -08:00
Jeffrey Pfau 27c4308ef5 Debugger: Add CLI function for writing a register 2015-02-22 17:33:35 -08:00
Jeffrey Pfau f0e99779d4 All: Fix more warnings 2015-02-14 23:47:08 -08:00
Jeffrey Pfau 1f08d4c3c5 Debugger: Add CLI functions for examining memory regions 2015-02-13 01:14:08 -08:00
Jeffrey Pfau 90e57c027b Debugger: Rename read/write commands 2015-02-13 00:56:43 -08:00
Jeffrey Pfau 8eeaa11256 ARM7: Add ARMRunFake for rolling back the PC and running a fake opcode 2015-02-04 23:30:04 -08:00
Jeffrey Pfau f9110fc51e ARM7: Make component numbers be size_t instead of int 2015-02-04 02:35:30 -08:00
Jeffrey Pfau 56291e63e5 Debugger: Add support for soft breakpoints 2015-02-03 03:12:04 -08:00
Jeffrey Pfau 96ac72fbf9 Debugger: Watchpoints now report address watched (fixes #68) 2015-01-26 01:16:24 -08:00
Jeffrey Pfau f4fcdf35d4 Debugger: Clean up debugger interface, removing obsolete state (fixes #67) 2015-01-25 13:28:14 -08:00
Jeffrey Pfau acb510619f Qt: Add error message if listening for GDB port fails 2015-01-21 22:57:45 -08:00
Jeffrey Pfau 973f1a64a0 Debugger: Ensure GDB stub never hard-blocks 2015-01-19 02:34:36 -08:00
Jeffrey Pfau 6d43fb7890 Debugger: Merge Thumb BL instructions when disassembling (fixes #133) 2015-01-18 13:28:58 -08:00
Jeffrey Pfau 99d75ee9ed Debugger: Simplify debugger state machine to play nicer with the GBA thread loop 2015-01-18 02:27:25 -08:00
Jeffrey Pfau 56d5fb579d Debugger: Clean up GDB stub network interfacing 2015-01-16 00:50:15 -08:00
Jeffrey Pfau d5ce3d5ee1 Debugger: Enable GDB stub to update while running 2015-01-15 21:23:32 -08:00
Jeffrey Pfau 6f11092565 Debugger: Make watchpoints work with STM/LDM (fixes #169) 2015-01-14 20:51:07 -08:00
Jeffrey Pfau 6d18b9aea5 GBA Memory: Simplify memory API and use fixed bus width 2015-01-10 01:20:21 -08:00
Jeffrey Pfau 76bf0427f1 Util: Support IPv6 2015-01-09 02:03:57 -08:00
Jeffrey Pfau da094de3da Debugger: Fix binary print putting spaces between digits 2015-01-08 01:03:27 -08:00
Jeffrey Pfau 747fcca3b2 Debugger: Add CLI functions for writing to memory 2014-12-26 01:40:50 -08:00
Jeffrey Pfau f25821524d Debugger: Fix watchpoints triggering too late 2014-12-25 14:48:30 -08:00
Jeffrey Pfau da612b51e8 Debugger: Add CLI "frame", frame advance command 2014-12-20 01:43:48 -08:00
Jeffrey Pfau a4a7ef4a1b Debugger: Properly isolate CLI debugger code 2014-12-08 15:59:17 -08:00
Jeffrey Pfau f6a7fedb28 All: Add MPL 2.0 license and associated headers 2014-12-03 00:39:06 -08:00
Jeffrey Pfau 55ba676d7c Debugger: Actually execute system commands 2014-11-27 11:02:47 -08:00
Jeffrey Pfau a8731d280f Debugger: Add support for additional platforms in CLI 2014-11-27 09:47:03 -08:00
Jeffrey Pfau 8ec961d2e8 Debugger: Add reset command 2014-11-27 08:58:22 -08:00
Jeffrey Pfau 732e29e3c6 Fix argument number errors 2014-10-25 01:48:55 -07:00
Jeffrey Pfau 344364695e Fix parsing of numbers starting with 0 (and disregarding octal) 2014-10-23 01:53:18 -07:00
Jeffrey Pfau 768316a8d3 Fix two small consistency issues 2014-10-23 01:53:18 -07:00
Jeffrey Pfau 537480b940 Load/Store multiple functions 2014-10-21 22:35:02 -07:00
Jeffrey Pfau ca5f7a45ee Move string utilities out to separate file (really fixing Linux build this time) 2014-10-19 03:01:26 -07:00
Jeffrey Pfau 4247db81e4 Split out macros from common.h 2014-10-11 18:18:47 -07:00
Jeffrey Pfau 435edc8017 Prefix completion 2014-10-10 03:27:10 -07:00
Jeffrey Pfau ab904f2cfd Don't tab complete null 2014-10-10 03:22:44 -07:00
Jeffrey Pfau ef6e1f9e74 Fix tab-completing past the end of the completions list 2014-10-10 02:56:13 -07:00
Jeffrey Pfau 0b736c9cc8 Add disassemble alias 2014-10-10 02:50:09 -07:00
Jeffrey Pfau be82f04618 Print address alongside disassembled instructions 2014-10-10 02:45:57 -07:00
Jeffrey Pfau 6aee0693ec Add support for 0b-style literals 2014-10-10 02:38:05 -07:00
Jeffrey Pfau fd1128f90a Fix 0 not being recognized as a valid token 2014-10-10 02:33:50 -07:00
Jeffrey Pfau 3cd0b50bce Add phony strndup implementation for when we do not have one 2014-09-30 22:05:07 -07:00
Jeffrey Pfau 834395d5d9 Add customizable parsers per command 2014-09-02 21:54:19 -07:00
Jeffrey Pfau 232ae47a6c CLI debugger help 2014-09-02 09:55:05 -07:00
Jeffrey Pfau 9cdc93eeed Add watchpoints to gdb stub 2014-09-01 02:24:00 -07:00
Jeffrey Pfau 21437e91f6 Implement watchpoint removing 2014-09-01 02:23:31 -07:00
Jeffrey Pfau 98cb4698f8 Fix GDB stub not responding to invalid Z packets 2014-09-01 02:06:07 -07:00
Jeffrey Pfau be13627d37 Send correct signal back to gdb when stepping 2014-09-01 01:57:11 -07:00
Jeffrey Pfau 9a87840e7e Add invalid commands to the CLI debugger history instead of discarding them 2014-08-30 04:02:19 -07:00
Jeffrey Pfau e6148ddb13 Add p/t to CLI debugger 2014-08-30 04:00:17 -07:00
Jeffrey Pfau 383c630891 Selectable disassemble modes in CLI debugger (fixes #113) 2014-08-30 03:48:14 -07:00
Jeffrey Pfau d48dad27d1 Fix build against C++ 2014-07-20 16:37:54 -07:00
Jeffrey Pfau d8654f3b88 Use stdbool for readability 2014-07-16 01:02:34 -07:00
Jeffrey Pfau 5958d8c0da Fix missing value for divide precedence 2014-07-12 18:41:11 -07:00
Jeffrey Pfau 4638e4a017 Add parenthesis support 2014-07-12 17:58:03 -07:00
Jeffrey Pfau a58f8f8675 Support identifiers 2014-07-12 17:25:51 -07:00
Jeffrey Pfau b89d6216ac Free identifiers 2014-07-12 17:13:58 -07:00
Jeffrey Pfau ce1dd4416f Proper parser, without identifier support currently 2014-07-12 17:12:35 -07:00
Jeffrey Pfau f71edb1684 Parse expressions in a separate function 2014-07-12 14:50:09 -07:00
Jeffrey Pfau 5b7da978d1 Remove project name strings from the code 2014-07-12 04:29:12 -07:00
Jeffrey Pfau 8f151ec90f DebugVectors should inherit failure 2014-07-12 04:12:04 -07:00
Jeffrey Pfau 903f384e05 Operations on numbers in CLI debugger 2014-07-12 04:04:15 -07:00
Jeffrey Pfau 5b7a551ed8 Add disassemble CLI debugger command 2014-07-12 03:36:04 -07:00
Jeffrey Pfau aefa5f0ab8 Merge branch 'decoder'
Conflicts:
	src/debugger/cli-debugger.c
2014-07-12 00:40:40 -07:00
Jeffrey Pfau a09d8649ee Begin work on ARM disassembler 2014-07-11 03:50:29 -07:00
Jeffrey Pfau 55977796f3 Move UNUSED macro to common.h 2014-07-10 01:00:38 -07:00
Jeffrey Pfau a6c8089601 Add read watchpoints (fixes #69) 2014-07-05 22:30:20 -07:00
Jeffrey Pfau 64e8d3fb83 Fix GBDStub build on Windows 2014-04-23 21:42:08 -07:00
Jeffrey Pfau 7a4ca414e5 Restructure watchpoints 2014-04-20 00:47:49 -07:00
Jeffrey Pfau 0f68dbc832 Redo component model/type punning 2014-04-20 00:19:55 -07:00
Jeffrey Pfau c0eb7c81f7 Remove ARMMemory and ARMBoard shims 2014-04-19 18:14:17 -07:00
Jeffrey Pfau b8ecabbaa9 Fix the build 2014-04-03 00:00:06 -07:00
Jeffrey Pfau ecb1939ff1 Move common headers to common.h, remove util and debugger from being first class include directories 2014-04-02 23:51:35 -07:00
Jeffrey Pfau c8e1a9cd59 PC-relative disassembling 2014-03-29 23:08:31 -07:00
Jeffrey Pfau e60cbfaf84 Begin disassembler 2014-03-29 23:06:07 -07:00
Jeffrey Pfau 20a5fa8476 Abstract out sockets 2014-02-03 23:01:26 -08:00
Jeffrey Pfau 020aec4e7b The debugger should not stop by default 2014-02-01 20:49:12 -08:00
Jeffrey Pfau d09004cf01 Fix infinite listen errors 2014-02-01 16:27:48 -08:00
Jeffrey Pfau b9f8955890 Add debugging logging interface 2014-02-01 16:26:48 -08:00
Jeffrey Pfau d97976d0df Add stepping and clean up 2014-02-01 15:50:12 -08:00
Jeffrey Pfau 325380989c Clean up unnecessary operation in GDB stub 2014-02-01 15:39:47 -08:00
Jeffrey Pfau 9435226c58 Breakpoint clearing in CLI debugger 2014-02-01 15:39:30 -08:00
Jeffrey Pfau c30807117f Breakpoint clearing 2014-02-01 15:37:15 -08:00
Jeffrey Pfau ea6b129509 LLDB compatibility 2014-02-01 15:21:17 -08:00
Jeffrey Pfau 1541e6e0b0 Expand packet size for lldb compat 2014-02-01 05:44:40 -08:00