Kelvin Sherlock
e21cfbb37a
0/1>mx to set both m and x bits.
2019-04-05 18:44:22 -04:00
Kelvin Sherlock
89d8b3efcf
disassembler - inline debug name support.
...
See IIgs technote #103 .
2019-04-05 18:43:54 -04:00
Kelvin Sherlock
30da497087
win32 console debugger
...
may need a little work, still.
2019-03-26 23:15:56 -04:00
Kelvin Sherlock
2a82de3d54
remove unused comments/defines.
2019-03-24 11:25:50 -04:00
Kelvin Sherlock
c677f0f894
common code for i/w/h commands.
2019-03-24 03:11:16 -04:00
Kelvin Sherlock
bda785f98d
add "w" command.
2019-03-23 20:49:41 -04:00
Kelvin Sherlock
5da4e5c39f
fix mvp/mvn operand order.
2019-03-21 22:08:39 -04:00
Kelvin Sherlock
6c38f597fd
use ] as the debug shell prompt.
2019-03-21 18:05:04 -04:00
Kelvin Sherlock
ec0c255975
debug shell - only set the ignore_brk/mp/bp IF the pc hasn't changed.
2019-03-21 18:04:51 -04:00
Kelvin Sherlock
fb2dee9b9b
add settings snytax.
...
0>setting
1>setting
where "setting" is:
brk - enable/disable GS+ brk support
cop - enable/disable GS+ cop support
e/m/x - set psr for disassembly support.
2019-03-20 00:16:20 -04:00
Kelvin Sherlock
96ecfb3b0d
next command - step over brk/cop instructions.
2019-03-20 00:14:04 -04:00
Kelvin Sherlock
483d92d53a
update TODO comment
2019-03-19 21:31:06 -04:00
Kelvin Sherlock
bf4c1bdc0e
use vt100 escape codes (in the future, should switch to termcap/terminfo) to erase previous line when stepping to clean up the display.
2019-03-19 21:30:52 -04:00
Kelvin Sherlock
4974c36458
print an extra newline after a ^C
2019-03-19 19:17:26 -04:00
Kelvin Sherlock
7aea2e56f2
- tweak ^D newlins
...
- %d was incorrect
- template pointers were 16-bit.
2019-03-19 00:38:33 -04:00
Kelvin Sherlock
d7a92f4441
cop/brk debugger support...
...
cop=1
brk=1
to enable brk/cop support. cop/brk instructions will be caught *BEFORE* execution and drop into the debugger shell. step/go/next will execute the instruction as normal. %pc++ will skip over the instruction.
2019-03-18 17:06:14 -04:00
Kelvin Sherlock
7b9da08d72
debug shell - print newline after control-D
2019-03-18 17:03:04 -04:00
Kelvin Sherlock
0e5f941cd5
debugger - add n (next) command
...
similar to s/step but skips OVER jsr/jsl commands.
implemented via a new temporary breakpoint list.
2019-03-12 18:57:59 -04:00
Kelvin Sherlock
1a64d4c979
temporary breakpoints, part 1.
2019-03-07 23:57:03 -05:00
Kelvin Sherlock
f863c4cfa0
quit if the HALT_WANTOQUIT is set (ie, win32 closing the window)
2019-03-05 21:53:28 -05:00
Kelvin Sherlock
4dbad2493b
missing line...
2019-02-23 17:33:56 -05:00
Kelvin Sherlock
67b187e70b
prefer _WIN32 over WIN32.
2019-02-23 17:33:38 -05:00
Kelvin Sherlock
69bc724ae8
2 controls Ds needed to exit.
2019-02-23 17:32:00 -05:00
Kelvin Sherlock
52d2c5f509
win32 get_resource_path
2019-02-23 17:31:31 -05:00
Kelvin Sherlock
3ce34e0e27
lookup addresses for abslong and pc.
2019-02-20 00:09:05 -05:00
Kelvin Sherlock
367d337674
2 unhandled ^Cs will abort
2019-02-20 00:07:59 -05:00
Kelvin Sherlock
6dd598be0c
disassemble prodos mli calls.
2019-02-19 22:18:22 -05:00
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
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
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
817792f94d
ubuntu, debian, etc, have outdated version of re2c. imagine that.
2019-02-10 22:21:06 -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
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
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
d47589374c
bp/mp are now post-fix ops.
2019-01-29 19:18:08 -05:00
Kelvin Sherlock
c4aa64de48
new breakpoint code.
2019-01-28 23:04:20 -05:00