Commit Graph

401 Commits

Author SHA1 Message Date
Kelvin Sherlock
9f3c0feb39 load tools and gs/os calls from NList.Data 2019-02-19 21:49:35 -05:00
Kelvin Sherlock
58351d1db7 win32 missing strndup 2019-02-19 19:48:39 -05:00
ksherlock
b9e36df2bb
mingw/win32 lacks strndup. 2019-02-18 11:24:08 -05:00
ksherlock
8584df91f5
win32 compiler fixes. 2019-02-18 11:08:57 -05:00
ksherlock
0e9cf9879b
use uintptr_t to cast ptr to int. 2019-02-18 10:56:43 -05:00
Kelvin Sherlock
fed51ab444 HISTORY_NO_DUP_FLAG currently missing from mingw wincon.h 2019-02-17 23:42:51 -05:00
Kelvin Sherlock
31ab8d4c6c win32 typo. 2019-02-17 23:34:10 -05:00
Kelvin Sherlock
682dc0c562 host mli - opening/closing a directory would close fd 0 (aka stdin). 2019-02-17 22:23:22 -05:00
Kelvin Sherlock
78591a37d0 unix host mli bug fixes
1. file/directory  storage types were reversed
2. month was off-by-one.
2019-02-17 18:46:19 -05:00
Kelvin Sherlock
216d1f1b35 push 24 mmu check was only checking 2 bytes. :/ 2019-02-17 16:40:34 -05:00
Kelvin Sherlock
4e956a4e06 simplify mp check logic. 2019-02-17 14:37:51 -05:00
Kelvin Sherlock
3c9a004a9e store fields in separate array, not as part of record. 2019-02-16 23:56:27 -05:00
Kelvin Sherlock
9589abfda7 debugger - add toolcall and GS/OS call recognition to the disassembler. 2019-02-16 17:29:39 -05:00
Kelvin Sherlock
a65833d6d8 register assignment - assign from other registers (eg, %a=%x) 2019-02-16 17:27:56 -05:00
Kelvin Sherlock
a0976f82a8 ubuntu. 2019-02-14 22:43:39 -05:00
Kelvin Sherlock
0956f154fd compile with old versions of re2c (*cough* ubuntu *cough*) 2019-02-14 22:24:42 -05:00
Kelvin Sherlock
44acfd5434 Debugger: %pc++, %s++, %s-- 2019-02-14 21:54:23 -05:00
Kelvin Sherlock
5cb4f63993 Debugger - GSBug.Templates support.
address\temp TemplateName to print structured memory.

Also, registers now need a % prefix so as not to interfere with other commands.
2019-02-14 21:37:03 -05:00
Kelvin Sherlock
2f05a766b0 fix GNU readline bug. linking libhistory is not necessary. In fact, it causes a SIGSEGV. 2019-02-11 23:09:59 -05:00
Kelvin Sherlock
14e1fe18f8 move icon files around. 2019-02-11 20:15:30 -05:00
Kelvin Sherlock
4a0c190ce3 win32 readline support, maybe. 2019-02-11 18:11:45 -05:00
Kelvin Sherlock
0021956044 bug fixes. 2019-02-10 22:45:42 -05:00
Kelvin Sherlock
f9a86eed8a auto-select readline library by default. 2019-02-10 22:39:23 -05:00
Kelvin Sherlock
817792f94d ubuntu, debian, etc, have outdated version of re2c. imagine that. 2019-02-10 22:21:06 -05:00
Kelvin Sherlock
926e9b7e47 travis - need freetype. 2019-02-10 21:43:15 -05:00
Kelvin Sherlock
25caf2dbad add ;s stack command. 2019-02-10 21:42:15 -05:00
Kelvin Sherlock
fdcb504d9c use simpler signal interface. 2019-02-10 21:40:47 -05:00
Kelvin Sherlock
66fbd7f677 move readline code to separate file. 2019-02-10 21:40:22 -05:00
Kelvin Sherlock
964293a3b8 travis.yml 2019-02-09 00:17:00 -05:00
Kelvin Sherlock
ea9a16fc5f debug shell - ;l or l for list. 2019-02-06 22:54:41 -05:00
Kelvin Sherlock
2b1e04c3ac debug shell - allow registers as addresses. 2019-02-06 22:54:18 -05:00
Kelvin Sherlock
524d4a27e4 halt_printf, control-c, etc set a halt bit. This now invokes the debugger, asynchronously (ie, after the current instruction finishes execution). 2019-02-06 22:53:44 -05:00
Kelvin Sherlock
68260dcf6a debugger - new WANTS_BRK bit. setting it will cause BRKS to invoke the debugger instead of being handled within the 65816. 2019-02-06 22:50:38 -05:00
Kelvin Sherlock
dccb965631 eliminate overflow warnings when byteswapping. 2019-02-06 22:48:04 -05:00
Kelvin Sherlock
d0ed507ef4 debug shell - control-C sets asynchronous halt request. 2019-02-06 22:47:35 -05:00
Kelvin Sherlock
b08806c12a debug shell - : memory assignment 2019-02-06 22:46:46 -05:00
Kelvin Sherlock
b7ff6d56e8 debug shell - @ and ^ indirection. 2019-02-06 22:46:08 -05:00
Kelvin Sherlock
2fb1249c96 clean up windows key mapping to use adb names codes. also fixes a few mistakes with keypad values. 2019-02-04 23:45:39 -05:00
Kelvin Sherlock
35993914f9 update adb keycodes with F15-F20, use proper value for F keys, eliminate Mac OS arrow key mapping. 2019-02-04 20:43:12 -05:00
Kelvin Sherlock
82229498b4 adb keycodes. 2019-02-04 20:41:11 -05:00
Kelvin Sherlock
e62889901c fix up tcp debug to work with new debugger 2019-01-29 19:20:17 -05:00
Kelvin Sherlock
d47589374c bp/mp are now post-fix ops. 2019-01-29 19:18:08 -05:00
Kelvin Sherlock
619ea2109d remove dead code, update for new debugger code 2019-01-29 00:21:24 -05:00
Kelvin Sherlock
6034573693 udpated cmakefile for new debug code. 2019-01-28 23:04:55 -05:00
Kelvin Sherlock
c4aa64de48 new breakpoint code. 2019-01-28 23:04:20 -05:00
Kelvin Sherlock
0cf532c00d BRK / COP weren't pushing the current z/neg flags. 2019-01-28 23:03:04 -05:00
Kelvin Sherlock
81c74470ef PUSH16 MMU check was incorrect. 2019-01-28 22:59:00 -05:00
Kelvin Sherlock
0e2f35e7fe re-order instructions so zero/negative flags are set AFTER memory write (which may abort) 2019-01-28 22:01:29 -05:00
Kelvin Sherlock
8d60a2d437 clean up the disassembler a little bit. 2019-01-28 18:10:27 -05:00
Kelvin Sherlock
0c0c886be9 drop the g_dbg_step variable for now... 2019-01-26 17:14:39 -05:00