Commit Graph

348 Commits

Author SHA1 Message Date
Unknown W. Brackets
4285485157 Debugger: Add menu to jump to begin/end of alloc.
Helpful when viewing memory.  Should add a shortcut too...
2021-04-03 16:03:21 -07:00
Unknown W. Brackets
f8306891c5 Windows: Avoid segfault if memory except on boot. 2021-03-28 19:44:17 -07:00
Unknown W. Brackets
de72190344 Debugger: Update status on scroll down.
And include the start and end of the range.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
a4ed6eb167 Debugger: Fix memory lookup in mirrors/uncached.
Oops, was crashing before since it's outside the index.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
d48bb7e105 Debugger: Show memory tag info in status bar. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
b1a2090e67 Debugger: Extend tag background on select too. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
c044e6f7e4 Debugger: Highlight memory ranges in memory view. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
d80655287b Debugger: Reorganize memory view painting.
This also grabs tag info, but doesn't display it yet.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
616850663c Debugger: Add initial UI for mem info type.
Does not visualize yet, just implements the selection interface.
2021-02-15 15:01:23 -08:00
Unknown W. Brackets
616f5ddc5a Debugger: Correct search by empty string. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
7119011363 Windows: Correct some variable init warnings. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets
f32f89dd90 Global: Remove some unused variables. 2021-02-15 11:59:45 -08:00
Unknown W. Brackets
0c876754a6 Windows: Remove unused file. 2021-02-15 09:28:38 -08:00
Henrik Rydgård
6b539cb4df
Merge pull request #14112 from unknownbrackets/debugger-dump
Debugger: Option to skip mem hacks in memory dump
2021-02-15 16:32:53 +01:00
Kingcom
5109fd7cdc CMake: Correct build on Windows. 2021-02-15 06:09:12 -08:00
Unknown W. Brackets
47b3384647 Windows: Fix some const type conversion warnings. 2021-02-14 10:30:10 -08:00
Unknown W. Brackets
2c165c9b6d Windows: Fix improper case or missing includes.
As per mingw errors/warnings.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
f66b0ff56c Debugger: Option to skip mem hacks in memory dump. 2021-02-10 20:36:02 -08:00
Unknown W. Brackets
ef24aa69a6 Debugger: Populate funcs if disassembly open early. 2021-02-06 10:20:23 -08:00
Henrik Rydgård
b7edf75437 Move Display.cpp/h to Common. 2020-10-04 11:42:16 +02:00
Henrik Rydgård
ff8148dd92 Move native/util, native/data and native/i18 to Common/Data.
Also move colorutil.cpp/h

linking build fix experiment

Delete a bunch of unused CMakeLists.txt files

CMakeLists.txt linking fix

Don't include NativeApp.h from any headers.

Android.mk buildfix

Half of the UWP fix

Buildfix

Minor project file cleanup

Buildfixes

Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
Unknown W. Brackets
f8391103a9 Windows: Correct some stdafx.h paths. 2020-09-29 23:25:22 -07:00
Henrik Rydgård
ed88761ecc Merge ext/native/stringutil.cpp/h into Common/StringUtils.cpp/h. 2020-09-29 15:51:51 +02:00
Henrik Rydgård
84b36d6e61 Speed up game start under Windows by not filling the symbol listbox until the disasm window is opened. 2020-09-24 00:32:52 +02:00
Henrik Rydgård
6ac9dfe6b5 Windows debugger: Clean out old remains of multi-cpu support 2020-09-24 00:32:52 +02:00
Henrik Rydgård
5d64fc5ff1 Switch to PPSSPP's assert functions (don't use the system's) 2020-08-16 10:01:10 +02:00
Henrik Rydgård
4e7944a353 Fix some bugs and style for #12994 2020-06-06 14:29:39 +02:00
Nikita Filippov
021e783b4a rudimentary serch function added for the memory dialog
fixed the memory addressing bug in search

the search box almost works

search now works, however the strings in search window neeed a fix

fixed the address display in search results

search works

fixed review comments, except .rc

preadjust the button placement

fixed rc
2020-06-06 14:23:26 +02:00
Unknown W. Brackets
4c29697120 Debugger: Avoid symbol map if deleted.
This isn't perfectly safe, but if the game quits very quickly, it's
possible for the symbol map to get deleted.
2020-05-23 10:26:47 -07:00
Unknown W. Brackets
6706fef58a Windows: Make memory dump long path friendly. 2020-01-04 10:32:48 -08:00
Unknown W. Brackets
97ac18ceee Windows: Make open/save dialogs long path aware.
At least, in most cases.  If the filename is super long, it'll open twice,
but we try to avoid.
2020-01-04 09:34:20 -08:00
Henrik Rydgård
c619a20a65 Fix display of memory view window on high-DPI displays. Fixes #11913. 2019-08-23 16:01:27 +02:00
Unknown W. Brackets
f53ea7e44f Debugger: Prevent saving a -1 sized func. 2019-03-24 13:00:05 -07:00
Henrik Rydgård
e74be9c492 DPI fixes in the old Win32 debugger. Fixes #11856.
Also some general cleanup of it but decided it wasn't worth it to continue.
2019-03-03 09:19:44 +01:00
dl471
7f3aaaa0f7 Readability improvements
-Change variable names related to offsets for consistency

-Add a few comments
2018-10-22 15:56:37 +01:00
dl471
b25adc7ba8 Implement drawing of offset scale
-Add function to draw offset

-Add checkbox to allow toggling of offset writing

-Set writeOffsets default value to Off

-Ensure the drawing and user input is not affected by the offset
2018-10-22 03:31:10 +01:00
dl471
c11cfe37f8 Implement saner making space for offsets
-Adjust the y coordinates of the rows as they are drawn

-Adjust visible rows

-Adjust clicks
2018-10-22 03:31:02 +01:00
dl471
f52b888186 Make space for offsets (dirty implementation) 2018-10-22 03:30:30 +01:00
Unknown W. Brackets
265611cff5 Debugger: Use Break instead of Stop.
It does not stop emulation.
2018-06-23 10:54:40 -07:00
Unknown W. Brackets
0d4bd341e9 Windows: Separate Pause and Break actions.
It was confusing that "Pause" made PPSSPP appear to hang.

This has the side effect of making "Break on Load" work outside Windows.
2018-06-23 10:14:36 -07:00
Unknown W. Brackets
8598fc9912 Debugger: Add some missing memory locks.
We can restart memory when loading save states, so we need this even while
we've got startup/shutdown locked.
2018-06-08 06:59:18 -07:00
Unknown W. Brackets
b2cc4a0965 Debugger: Add memory breakpoint management. 2018-06-08 06:59:18 -07:00
Unknown W. Brackets
eb4b59b530 arm64jit: Enable breakpoints.
Memory breakpoints not yet really tested.
2018-06-06 17:31:56 -07:00
aliaspider
54d9406713 fix mingw and msvc cmake builds. 2018-03-23 03:18:13 +01:00
Unknown W. Brackets
79a9018aac Debugger: Fix hang when viewing invalid RAM.
If you end up in disassembly near invalid RAM, bad things were happening,
since hitting bad RAM updates the debugger, which hits bad RAM, which...
2017-12-30 11:11:04 -08:00
Henrik Rydgård
6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
Henrik Rydgård
ff3d799871 Remove snprintf compatibility hacks for MSVC versions before 2015 2017-08-31 16:46:54 +02:00
Henrik Rydgård
21fe73c8e7 Switch strncpy to truncate_cpy in a bunch of places. 2017-05-26 19:04:08 +02:00
Henrik Rydgard
5b835839fa Make IdentifiedFileType a proper enum class 2017-03-02 12:29:03 +01:00
Henrik Rydgard
f4b1152b00 Pick some safe changes from the android gradle branch (including windows CMake fixes) 2016-12-05 16:52:03 +01:00
Unknown W. Brackets
747a6ec524 Debugger: Add custom log expressions.
Similar to Visual Studio, just use {a1} to log the value of register a1.
Supports anything the expression parser supports.
2016-08-04 13:29:22 -07:00
Unknown W. Brackets
e4ca124b0e Debugger: Add custom breakpoint log message. 2016-08-04 13:07:56 -07:00
Unknown W. Brackets
9972e5b10a Debugger: Allow logging on CPU breakpoints. 2016-08-04 12:39:29 -07:00
Unknown W. Brackets
a9ad0cd471 Debugger: Make breakpoint actions more generic. 2016-08-04 12:02:44 -07:00
Henrik Rydgard
b998131581 Move the symbol map to the heap, deallocate it when no game is running. 2015-10-31 23:01:19 +01:00
Henrik Rydgard
d746d219e1 Delete some outdated xp theme stuff 2015-09-20 21:01:19 +02:00
Henrik Rydgard
6cc7a85cde Rename WndMainWindow to MainWindow 2015-09-19 13:14:05 +02:00
Henrik Rydgard
d3018c1787 Windows: Enable ASLR (had to fix a few pointer truncations) 2015-07-15 20:02:42 +02:00
Unknown W. Brackets
fc0788bc95 Avoid unpredictable behavior in error condition. 2015-04-08 11:57:57 -07:00
Unknown W. Brackets
98d7afae89 Switch to #pragma once in a few places.
Doesn't really affect git history much to change these.
2015-03-02 22:34:51 -08:00
Unknown W. Brackets
6e6b45ce2b Fix a missing break. 2015-01-19 08:58:37 -08:00
Unknown W. Brackets
83b8e564cf Avoid an unlikely error in breakpoint listing. 2015-01-19 08:31:56 -08:00
Unknown W. Brackets
fa84bb6948 Fix some unlikely uninitialized values. 2015-01-17 18:43:04 -08:00
Unknown W. Brackets
e7aabc8f53 Avoid a hang on step out with no threads. 2015-01-17 18:43:02 -08:00
Kingcom
f6cedcbff5 Replace assembler with a submodule 2014-11-23 21:09:40 +01:00
Unknown W. Brackets
fba0110073 Properly clamp some iterative snprintf()s. 2014-11-05 08:06:15 -08:00
Henrik Rydgård
3b1476c8ec MIPSTables: Annotate fp and hi/lo in/out more accurately than just "other"
Some typo fixes
2014-10-12 19:46:50 +02:00
Henrik Rydgard
f84ebf6bff sprintf->snprintf, fix some too short buffers 2014-09-14 00:14:11 +02:00
Unknown W. Brackets
32cc6bc845 Disable the PC/LR buttons outside a game.
They don't want and can cause hangs if clicked after a game is stopped.
2014-09-07 20:44:55 -07:00
Unknown W. Brackets
0ae9f06376 Skip emuhacks when showing encodings in debugger.
This can cause confusion when it doesn't match the displayed disasm.
2014-08-18 07:49:34 -07:00
Unknown W. Brackets
55403e42c2 Introduce a memory shutdown lock.
This allows the debugger to access memory in a safe way that should never
crash.
2014-07-19 23:30:19 -07:00
Henrik Rydgard
6ec74ef99e Be consistent about how we read and update the UI state variable 2014-06-22 09:57:01 +02:00
Unknown W. Brackets
9efbc2694b Add an invalidate all method to the jit. 2014-06-19 01:13:06 -07:00
Unknown W. Brackets
9f01c02626 Don't try to read breakpoint info after exit.
Fixes a crash on exit when on a breakpoint.
2014-05-31 10:03:01 -07:00
Kingcom
6256f64507 Display label name in status bar 2014-03-31 17:00:48 +02:00
Unknown W. Brackets
f70f70925d Highlight arguments from the selected range.
For example, if "lui v0,0x8000" is selected, highlight "v0" or "0x8000"
used as arguments on other lines.  Makes it a bit easier to follow.
2014-03-02 22:49:22 -08:00
Henrik Rydgård
b7651b61c7 Merge pull request #5546 from chinhodado/fixes
some minor fixes and changes
2014-02-23 19:12:42 +07:00
chinhodado
9ba79f31a2 minor change in file filter 2014-02-22 22:35:15 -05:00
chinhodado
6491557c17 fix a wrong parameter 2014-02-22 21:29:03 -05:00
Unknown W. Brackets
f6abfb9444 Fix hang if you use disasm goto outside game. 2014-02-20 01:02:39 -08:00
Unknown W. Brackets
f62eb4848d Add a few more safety checks for SendMessage().
Broadcasting is bad.
2014-02-17 21:08:34 -08:00
Unknown W. Brackets
ec34c31416 Initialize the status bar earlier.
We try to set its text sometimes before creating it, which can cause a
random hang.  It could also maybe be causing the window titles to be
blanked out.
2014-02-17 20:52:38 -08:00
Unknown W. Brackets
8f09a341df Fix a few leaks in the Windows UI code. 2014-02-14 21:08:24 -08:00
Kingcom
2b7a601c17 Add checkboxes to GenericListControl, use them in CtrlBreakpointList 2014-02-13 10:24:42 +01:00
Kingcom
880be6d41d Module list in Windows debugger 2014-01-27 00:35:16 +01:00
Henrik Rydgård
efd44a6933 Merge branch 'debugger2' of https://github.com/unknownbrackets/ppsspp into unknownbrackets-debugger2
Conflicts:
	Core/Debugger/Breakpoints.cpp
2014-01-26 23:10:37 +01:00
Unknown W. Brackets
fe2b62c27d Make the "on change" checkbox for memchecks work.
But, for now, only on sw and similar instructions, the rest don't work
yet and just always break.
2014-01-26 11:57:39 -08:00
Unknown W. Brackets
76afb2a8d5 Avoid returning points from the symbol map.
Now that it uses a lookup, this is even more dangerous.  But, the maps
could be reordered while it's trying to print the pointer and cause that
data to become invalid.

This should be safe from race conditions.
2014-01-25 21:40:23 -08:00
Unknown W. Brackets
0fa371ccbf windows: Check PSP_IsInited() in more places.
This prevents showing buttons as clickable, etc. in the debugger mainly.
2014-01-19 14:25:12 -08:00
Kingcom
b6404728ec Jump to function on pressing return in the function list 2014-01-12 01:12:35 +01:00
The Dax
52aa7ee9cf Only set the dialog text if the virtual PSP is inited, as well. 2014-01-02 16:49:26 -05:00
The Dax
db4abcd0c5 Don't crash when the virtual PSP isn't inited. 2014-01-02 14:55:09 -05:00
Unknown W. Brackets
db77dcd149 Fix some includes on Windows/etc. 2013-12-29 15:59:36 -08:00
Henrik Rydgard
455a73bba7 Bugfix replace function inlining (compilerPC needs to be increased). Misc. 2013-12-20 15:37:37 +01:00
Henrik Rydgard
2eab4aa1bf Play around with function replacement. Turned off by default of course. 2013-12-17 23:40:27 +01:00
Henrik Rydgard
2140892074 Initial preparations for ability to replace game functions with custom implementations.
Also auto-saves hashmap additions and reapplies the hashmap on function
rename so that if you rename a function that exists in several copies
they will all be labelled.

Note that actual function replacement is not activated yet.
2013-12-17 12:27:20 +01:00
Unknown W. Brackets
dd2e996838 Fix some type comparison warnings. 2013-12-01 11:21:16 -08:00
Henrik Rydgård
1296aad6c7 Merge pull request #4675 from Kingcom/Debugger
Small debugger fixes and enhancements
2013-11-29 08:30:08 -08:00
Kingcom
85abd37ed1 Small debugger fixes and enhancements 2013-11-29 17:21:48 +01:00
Henrik Rydgard
55500d4bb6 Reorder VFPU registers in memory so that we can flush and reload them in bulk more often.
Doesn't actually do that yet, that's for the NEON branch.
2013-11-28 13:27:51 +01:00