Commit Graph

670 Commits

Author SHA1 Message Date
Vas Crabb
97b6717027 (nw) Clean up the mess on master
This effectively reverts b380514764 and
c24473ddff, restoring the state at
598cd52272.

Before pushing, please check that what you're about to push is sane.
Check your local commit log and ensure there isn't anything out-of-place
before pushing to mainline.  When things like this happen, it wastes
everyone's time.  I really don't need this in a week when real work™ is
busting my balls and I'm behind where I want to be with preparing for
MAME release.
2019-03-26 11:13:37 +11:00
andreasnaive
b380514764 Revert "conflict resolution (nw)"
This reverts commit c24473ddff, reversing
changes made to 009cba4fb8.
2019-03-25 23:13:40 +01:00
AJR
1a66b2ff1e distate: Expose state_find_entry (nw) 2019-03-16 19:46:53 -04:00
AJR
1a3b2ef914 Exclude non-CPUs from numerical indexing for debugger commands 2019-03-13 23:57:09 -04:00
AJR
314f411b13 Eliminate qsort usage in debugger (nw) 2019-02-16 21:27:06 -05:00
Olivier Galibert
8f534764f9 mu100: Add missing roms, also some wip [Guru, O. Galibert] 2018-12-06 15:02:17 +01:00
Olivier Galibert
76575e6cdd watchpoint: prevent recursive multiple installs [O. Galibert] 2018-12-06 14:58:26 +01:00
Sven Schnelle
dce71bdec1 debugger: add %c to logerror
This is useful for catching putchar() like functions and printing
the written value to error.log.

On hp9k_3xx, i'm using this with the HP 300 test software, to log
test error messages that get printed on screen to error.log, so i
have the message directly after the debug messages from my driver.

Example:

wpset 0xfffe36be,80,w,1,{ logerror "%c", wpdata; g }
2018-11-17 19:09:39 +01:00
Sven Schnelle
12f43029dc debugger: add 'gp' command
gp 'go privilege' starts execution until the privilege mode
changes. This can be used to break on task switches. I.e on m68k,
one could do:

gp { ~sr & 0x2000 && crp_aptr == 0x1234567 }

which would execute until the privilege mode changes to user mode and
the CPU root pointer is 0x1234567.

for cpu code, all that is needed to make this work is calling
debugger_privilege_hook() when the execution level changes.
2018-11-06 15:44:52 +01:00
S.Z
cbd7b12f60
Remove emu.h from textbuf (nw) 2018-11-03 08:34:50 +01:00
yz70s
4e0a7632f4 Put #include emu.h as the first preprocessor directive in various files to support precompiled headers in visual studio (nw) 2018-11-02 08:50:09 +01:00
mooglyguy
f5dfaff417 debugcpu: Fixed watchpoints for CPUs with a negative address shift. [Ryan Holtz] 2018-09-30 19:46:17 +02:00
AJR
dd0b82a670 Fix debugger memory view editing for address-shifted spaces 2018-09-24 14:39:20 -04:00
AJR
ac355d1559 Apply logical address mask properly in debug disassembly view
Associated core changes (nw)
- Move definition of address_space_config from dimemory.cpp to emumem.cpp (declaration was already in emumem.h)
- Add getters for more members of address_space_config with future privatization in mind (nw)
2018-08-24 22:20:54 -04:00
AJR
67cc4b9c44 Fix scrolling glitch in memory view when address expression is applied 2018-08-12 16:35:51 -04:00
AJR
708d928214 Don't apply logical address masks to physical addresses in debug memory accesses (nw) 2018-08-12 10:02:23 -04:00
AJR
a459faa90f Emulate V33/V53 expanded addressing mode, including BRKXA and RETXA instructions
Mask address expressions correctly in debug memory view when using physical addresses beyond logical limits
2018-08-12 02:11:58 -04:00
AJR
a1c3a96a83 Mask address expressions in debug disasm view 2018-07-26 22:12:55 -04:00
AJR
8de41654fa debugcpu.cpp: Move scripting functions down into console (nw) 2018-07-26 14:41:14 -04:00
AJR
6024c958b9 debug/express.cpp: Use std::deque for token stack (nw) 2018-07-26 14:40:44 -04:00
Vas Crabb
c0ab1c5aa4 (nw) srcclean and some cleanup:
* Make more #include guards follow standard format - using MAME_ as the prefix makes it easy to see which ones come from our code in a preprocessor dump, and having both src/devices/machine/foo.h and src/mame/machine/foo.h causes issues anyway
* Get #include "emu.h" out of headers - it should only be the first thing in a complilation unit or we get differences in behaviour with PCH on/off
* Add out-of-line destructors to some devices - it forces the compiler to instantiate the vtable in a certain location and avoids some non-deterministic compiler behaviours
2018-07-22 20:41:57 +10:00
mooglyguy
eed782f1e3 ps2sony: Some basic VU1 support, major file reshuffling, nw 2018-07-21 10:07:00 +02:00
Olivier Galibert
177731f5dc Fix some watchpoints (nw) 2018-07-13 15:20:08 +02:00
Olivier Galibert
d5d82fa30a Watchpoint fixes (segfaults, wpclear not clearing) (nw) 2018-07-09 23:39:29 +02:00
Olivier Galibert
71d4e521d8 Various watchpoint fixes (nw) 2018-07-01 22:03:51 +02:00
Olivier Galibert
b511b8ff39 Oops (nw) 2018-06-29 22:54:21 +02:00
Olivier Galibert
a704ed7b1b emumem: Backend modernization [O. Galibert] 2018-06-29 20:04:28 +02:00
Patrick Mackinlay
87e96248f1 debugger: make save/load support virtual memory (nw) (#3683)
This makes these commands useful and consistent with dump in a virtual memory environment. One minor issue is what to do with save for an unmapped memory address: the approach taken here is to write the space.unmap() value, which seems the least harmful. On load, unmapped addresses are not written to, meaning that save/load with a constant address map work as expected.
2018-06-23 17:52:01 +02:00
Patrick Mackinlay
a714997f43 debugger: add command for go_exception (#3682) 2018-06-23 17:41:01 +02:00
AJR
49f354d544 Kludge some absolute tag lookups in the core that can't really be helped (nw) 2018-05-21 01:10:27 -04:00
Vas Crabb
11fa3800f3 prune upfront - makes the other stuff cheaper (nw) 2018-05-18 21:00:54 +10:00
Vas Crabb
74ca2733d0 try this for size - emu.h no net change (nw) 2018-05-18 20:45:39 +10:00
Curt Coder
4d3566cfa7 WARNING emu.h recompile!
debugger: Show save state items in alphabetical order in the debugger view. [Curt Coder]
2018-05-18 13:09:00 +03:00
AJR
f3d19e977c Make debugger dump command work with unaligned addresses 2018-05-14 08:08:01 -04:00
Olivier Galibert
74301434ae debug: Simplify now obsolete and buggy memory access code [O. Galibert] 2018-05-11 18:23:04 +09:00
Ivan Vangelista
7d3b4eec89 debughlp.cpp: replaced references to 'decrypted opcodes' with 'opcodes', as suggested (nw) 2018-05-02 19:09:33 +02:00
Vas Crabb
ac79c90607 srcclean (nw) 2018-04-22 09:24:13 +10:00
Ivan Vangelista
7b9bc3a46a debughlp.cpp: document dumpo command (nw) 2018-04-20 18:20:24 +02:00
smf-
1a27a251f8 remove safe_pc() and safe_pcbase() (nw) 2018-04-13 16:41:37 +01:00
GavinAndrews
06a09d3821 Added suspend and resume debugger commands (#3411) 2018-04-02 12:23:38 -04:00
Vas Crabb
a074296288 fix scheduling session events from debugger (nw) 2018-03-29 01:42:37 +11:00
Vas Crabb
010155a3c5 Reshuffle some stuff:
* Move around the debugger hooks to get a small but measurable performance increase
* Remove emucore from external tools
* Improve performance of DSP16 interpreter a little by generating six variants of execution loop
2018-03-28 05:25:15 +11:00
Vas Crabb
8142f24c43 don't pass so many naked pointers around (nw) 2018-03-25 01:44:45 +11:00
AJR
25b40bae22 Fix masking of offset expressions in debug view of address-shifted spaces (nw) 2018-03-12 15:47:46 -04:00
Vas Crabb
af31f4b3de better handling for arbitrary numbers of screens (nw) 2018-03-12 17:31:40 +11:00
AJR
58491dec69 Better fix for find command (nw) 2018-03-12 00:15:03 -04:00
AJR
a4f5e6a842 Fix debugger find command for address-shifted spaces 2018-03-12 00:07:33 -04:00
AJR
41a6e6222e Fix watchpoint view for address-shifted spaces 2018-03-11 23:52:59 -04:00
AJR
2f13e9b319 Fix output of wplist debug command for address-shifted spaces 2018-03-11 15:36:20 -04:00
AJR
7f934429fa Fix extent of debug view of address-shifted memory spaces 2018-03-11 15:23:35 -04:00