TuxSH
2c8a1eb5c6
gdb hio: lseek returns 64-bit
2019-05-04 17:08:32 +02:00
TuxSH
23c40aeb8e
gdb hio: add type l
2019-05-04 16:30:34 +02:00
TuxSH
c7c832a0dd
Relicense gdbstub (with permission of contributors)
2019-05-03 21:06:10 +02:00
TuxSH
6423d0c1b3
gdb: fix hang when "debug next application" is used more than once
2019-05-01 19:37:46 +02:00
TuxSH
8b56098d64
Fix TIO encoding bug
2019-04-28 15:04:42 +02:00
TuxSH
2927bd5aa3
gdb: double packet size
2019-04-28 02:15:46 +02:00
TuxSH
d357db25f2
gdb TIO: fix mode and flags being swapped
2019-04-28 02:06:31 +02:00
TuxSH
9b3cc5391b
tio fixes
2019-04-27 23:23:36 +02:00
TuxSH
54eeb97b24
Add GDB target IO support (called Host I/O by gdb), not working yet
2019-04-27 16:50:47 +02:00
piepie62
58ff96dc83
Merge origin into this branch
2019-04-23 08:24:50 -07:00
TuxSH
a5803d1b62
Merge pull request #1245 from piepie62/IFile-Fix
...
IFile: Fix reading past the end of file
2019-04-23 11:29:54 +02:00
TuxSH
eddb0988a0
Merge pull request #1243 from piepie62/master
...
Improve cheat execution parameters and handle CRLF properly
2019-04-23 11:29:04 +02:00
TuxSH
5d3585a33d
fix gdb control C regression
2019-04-21 18:00:29 +02:00
piepie62
32b8cf6172
Merge branch 'master' of https://github.com/AuroraWright/Luma3DS into Debuffer
2019-04-19 11:36:19 -07:00
TuxSH
687dfddd9f
HBLDR_DebugNextApplicationByForce changes
2019-04-19 00:37:20 +02:00
piepie62
90a43089ba
Debuffer cheat reading and strip whitespace
...
Effectively doubles the amount of cheats possible, while also getting rid of that annoying line limit
2019-04-18 14:01:46 -07:00
piepie62
1e0baeb30e
Fix reading past the end of a file
2019-04-18 14:01:02 -07:00
piepie62
353f7d1705
Add bounds checking
2019-04-18 14:01:02 -07:00
piepie62
f5f3764f99
Improve cheat execution parameters and handle CRLF properly
2019-04-18 14:01:02 -07:00
TuxSH
eef22f8701
Fix "debug next process" with hbldr homebrew
2019-04-18 22:58:53 +02:00
TuxSH
9e1a9f2842
Implement HBLDR_DebugNextApplicationByForce
...
also prevent port 4003 (next application) from being extended-remote
2019-04-18 22:28:23 +02:00
TuxSH
0b33134f6c
Loader services refactor
2019-04-18 19:48:01 +02:00
TuxSH
5c4d6c68b2
gdb: fix GDB_AttachToProcess returning success even when the process doesn't exist
2019-04-18 00:40:20 +02:00
TuxSH
89e42a457c
gdb: hio: fix error parsing
2019-04-17 23:53:27 +02:00
TuxSH
17ca09346d
gdb: fix multiple extended-remote issues, also fix possible race condtions
2019-04-17 23:12:29 +02:00
TuxSH
06bcb39721
always save errdisp to file; hio changes
2019-04-17 00:18:12 +02:00
piepie62
eab9a31dff
Fix reading past the end of a file
2019-04-15 13:08:53 -07:00
piepie62
ff86ed2e77
Add bounds checking
2019-04-15 03:41:25 -07:00
piepie62
2fe1169423
Improve cheat execution parameters and handle CRLF properly
2019-04-14 23:12:14 -07:00
TuxSH
4c9fe186d7
gdb: hio support (untested yet)
2019-04-14 21:48:15 +02:00
TuxSH
e11cc090b2
gdb: add support to run new processes
...
Only titleId [mediaType [launchFlags]] is supported, and the launched title shouldn't rely on APT and all 3 parameters should be hex-encoded.
usage example, with titleId+mediaType:
(gdb) set remote file-exec 0004013000003702
(gdb) r 0
2019-04-13 19:18:47 +02:00
TuxSH
763a1de8d3
gdb: add extended-remote support, implement vAttach
2019-04-12 23:40:51 +02:00
TuxSH
e57b546dd4
gdb: rework meaning of selected/used
2019-04-10 23:38:10 +02:00
TuxSH
bd670cf87c
gdb: add GDB_FindAllocatedContextByPid
2019-04-10 23:17:49 +02:00
TuxSH
1e0996c395
gdb: simply gdbstate
2019-04-09 23:59:05 +02:00
TuxSH
63736d7873
Refactor process detaching code
2019-03-31 22:58:36 +02:00
TuxSH
fb800bd4c9
Add support to force-debug applications before they start running code
2019-03-31 20:01:16 +02:00
TuxSH
219f38169f
Update drawString (rosalina)
2019-03-31 17:04:07 +02:00
TuxSH
c688600d33
PMDBG_GetCurrentAppTitleId => PMDBG_GetCurrentAppTitleIdAndPid
2019-03-31 16:12:31 +02:00
TuxSH
ea14d8a186
gdb: avoid race conditions
2019-03-31 01:14:40 +01:00
TuxSH
cd18b85632
gdb: refactor port/ctx alloc
2019-03-31 00:24:45 +01:00
TuxSH
22ec031495
Add client code for new custom pm commands, use them, fix pm race conditions
2019-03-30 18:12:54 +01:00
TuxSH
ef034a87d4
revert fsldr change, fix null deref in pm
2019-03-29 22:40:54 +01:00
TuxSH
e688ec9257
move patches to pm
2019-03-29 19:07:24 +01:00
TuxSH
7177799021
Rosalina: delete "auto screenfilter restore on wakeup" functionality.
...
It was causing sleep mode wakeup issues and/or interfering with gsp in a
bad way.
2019-03-29 18:23:52 +01:00
TuxSH
e57abad52f
ctrulib changes
2019-03-29 00:09:59 +01:00
TuxSH
74bbfb95d3
service_manager: auto subscribe
2019-03-28 22:56:13 +01:00
TuxSH
474eb3001b
Introduce service_manager, also fix hb:ldr pm/pm race condition
2019-03-16 23:40:43 +01:00
TuxSH
f72d99d9b0
Fix wrong number of menus
2019-03-16 23:34:51 +01:00
TuxSH
a9a569c79d
Remove useless rules
2019-03-16 18:11:46 +01:00
TuxSH
6199f598e5
Add -nocodepadding to cxis as it ought to be
2019-03-15 23:03:25 +01:00
TuxSH
b92406afe2
Fix rebase
2019-03-15 23:03:25 +01:00
TuxSH
e64f267e4c
Fix section declarations in .s files
2019-03-15 23:03:23 +01:00
TuxSH
d28e961adc
Use <string.h> & <3ds/exheader.h>, fix some bugs, etc.
...
also fix all warnings and use -Werror
2019-03-15 23:03:23 +01:00
TuxSH
9fad2dff21
Add top-level Makefile for sysmodules
2019-03-15 23:03:20 +01:00
TuxSH
4b40dd52f4
Give a proper build system for each sysmodule, k11ext, arm11.
...
Previously, these Makefiles didn't correctly track header changes.
The project doesn't build as a whole, future commits will fix it.
2019-03-15 23:03:19 +01:00
TuxSH
020236742f
Fix gdbstub UB with IO
2019-03-15 22:37:04 +01:00
TuxSH
faeb0d9395
Fix strict-aliasing-related UB
2019-03-15 22:23:44 +01:00
TuxSH
b05f993221
Fix wrong memset size in screen_filters
2019-03-15 17:04:15 +01:00
TuxSH
a7100a1e7f
Fix implicit fallthrough in debug.c
2019-02-28 19:08:39 +01:00
BuildTools
1c7b55ee1e
Bump copyright year
2019-02-24 18:04:32 -07:00
TuxSH
f437d92374
Merge pull request #1065 from panicbit/screen_filter
...
Implement blue light filters
2019-02-21 19:48:07 +01:00
TuxSH
47916b2831
Fix menu thread stack overflow
...
sizeof(menuThreadStack) not matching 0x3000
2019-02-21 19:47:35 +01:00
tstambaugh92
2219b19d5f
Fixed cheat functionality ( #1117 )
2018-08-09 14:21:16 +02:00
tstambaugh92
bc06b17823
Fixed cheat functionality ( #1116 )
...
Fixed functionality of BXXXXXXX codes
2018-08-07 12:50:48 +02:00
Nanquitas
dd6e071dde
socAccept: Fix an omitted comment, which masked a condition
2018-07-05 23:33:34 +02:00
TuxSH
1600171ffa
Bump copyright year
2018-06-14 18:13:57 +02:00
Nanquitas
8447c209a7
Fix GPU_PSC1_CNT address
2018-05-13 10:58:07 +02:00
panicbit
74a0b2feae
Simplify color LUT writes
2018-04-16 01:28:57 +02:00
panicbit
71039fc248
Remove unnecassary permission declarations
2018-04-15 17:15:06 +02:00
panicbit
d0306609c3
Apply screen filter when waking up from standby
2018-04-15 16:26:20 +02:00
panicbit
d13cde3d7b
Implement blue light filters in rosalina
2018-04-15 04:55:20 +02:00
panicbit
38f54fd2b6
Add parts of redshift to rosalina
2018-04-15 04:55:20 +02:00
panicbit
b5728e9c11
Add gpu color LUT registers to rosalina
2018-04-15 04:55:14 +02:00
TuxSH
a2177c0510
Fix menu entries (again)
2018-04-05 23:40:18 +02:00
Aurora
1182d3a627
Fix #1050
2018-03-23 02:49:16 +01:00
TuxSH
938cb6492f
Revert "Revert "Switched from mapping target process memory to svcReadProcessMemory & svcWriteProcessMemory functions.""
...
This reverts commit 1fd689f5da
.
2018-03-20 01:11:49 +01:00
Duckbill
6d4d80a798
Merge remote-tracking branch 'upstream/master'
2018-01-19 17:38:57 +03:00
TuxSH
76d274cfe2
getmemregions: userland never exceeds 0x40000000
2018-01-19 01:42:53 +01:00
TuxSH
ccf13be964
Merge pull request #1010 from Nanquitas/input-redirection-sockupdate
...
InputRedirection: check service existence instead of using OpenProcessByName
2018-01-19 01:30:15 +01:00
TuxSH
e36b27ccf0
Merge pull request #1012 from Nanquitas/rosalina-freeze-fix
...
Rosalina: fix freeze when attempting to open Rosalina before the syst…
2018-01-19 01:29:58 +01:00
TuxSH
34c80ad476
Merge pull request #1009 from Nanquitas/gdb-list-memregion
...
gdb: new getmemregions command
2018-01-19 01:28:53 +01:00
Nanquitas
7cb74b74d7
Rosalina: fix freeze when attempting to open Rosalina before the system finished to boot
2018-01-18 23:39:47 +01:00
Nanquitas
337205eb08
sock_util: remove unneeded check
...
We loop while (server_sockfd == -1) so it's safe to assume that (server_sockfd != -1) once out of the loop.
2018-01-18 22:57:46 +01:00
Nanquitas
f36977017b
InputRedirection: check service existence instead of using OpenProcessByName
2018-01-18 20:44:54 +01:00
Nanquitas
e40b547bb6
gdb: new getmemregions command
2018-01-18 17:23:43 +01:00
Duckbill
1fd689f5da
Revert "Switched from mapping target process memory to svcReadProcessMemory & svcWriteProcessMemory functions."
...
This reverts commit c5c8dca14c
.
2018-01-16 09:54:55 +03:00
Duckbill
c5c8dca14c
Switched from mapping target process memory to svcReadProcessMemory & svcWriteProcessMemory functions.
2018-01-15 21:29:05 +03:00
TuxSH
11f820efa7
Check service existence before GetServiceHandle
2018-01-15 02:52:50 +01:00
TuxSH
9074688491
Make srvGetServiceHandle non-blocking if service port is full in all cases
2018-01-15 02:27:07 +01:00
Duckbill
1de27c54f1
Fix range checks
2018-01-13 16:02:54 +03:00
Duckbill
3e67e64faa
Fixes after review on github
2018-01-13 13:51:28 +03:00
TuxSH
553f8d2533
Remove lto for sysmodules
2018-01-12 11:20:17 +01:00
Duckbill
ec7ae35da1
Fixes for masked 16-bit cheat opcodes, based on existing cheats.
2018-01-12 10:46:50 +03:00
Duckbill
7e8da0d236
Possible out of bounds fix
2018-01-10 09:53:36 +03:00
Duckbill
b3e6561072
Merge remote-tracking branch 'upstream/master'
2018-01-06 12:29:08 +03:00
Duckbill
0f4d66dd61
Try to load cheats if there aren't any on every open of cheats menu.
2018-01-03 11:48:10 +03:00
Duckbill
d28642d2c3
More range checks and separate code and heap allocation
2018-01-03 00:27:44 +03:00
Duckbill
ca4685cc42
Range checks added
2018-01-02 14:23:45 +03:00
Joel16
239d113177
Update mcu functions with changes from ctrulib
2018-01-01 11:05:22 -06:00
Duckbill
fd80294bf2
Fix buffer overflow in case of very long cheats.txt file
2017-12-31 11:26:18 +03:00
Duckbill
cb945612a3
Remove ast empty cheat from list
2017-12-25 14:16:57 +03:00
Duckbill
1b440f7f3b
Skip empty cheats
2017-12-25 13:57:20 +03:00
Duckbill
78791f7b66
Paging fixes
2017-12-25 13:45:09 +03:00
Duckbill
5def0c18e2
Cheat file format changed from binary to plaintext
2017-12-22 14:46:46 +03:00
Duckbill
0e67b0f026
Moved key combo calculation to loading cheat phase
2017-12-22 12:39:09 +03:00
Duckbill
8052946517
Cheats array repleced by continous buffer
2017-12-22 12:17:45 +03:00
Duckbill
b6d6cc9750
Cheat implementations
2017-12-21 20:14:04 +03:00
TuxSH
2a840f2c79
Minor date/time conversion loop style fixes
2017-12-19 02:32:51 +01:00
TuxSH
4eaf791849
Merge pull request #937 from Hayleia/timestamped-screenshots
...
screenshots use timestamps as name
2017-12-19 02:15:07 +01:00
TuxSH
16530d3a52
Merge pull request #972 from LiquidFenrir/ramviewer-fix
...
fix mistake, processes viewed were attached even if debugger was off
2017-12-18 07:13:13 +01:00
Aurora Wright
20af9c6750
Fix issue reported in
...
f27cdb4543
\#commitcomment-24611141, simplify 56e54cd110
2017-12-18 04:27:11 +01:00
LiquidFenrir
fee9f6b427
forgot to return, made processes viewed attached even though the debugger wasnt enabled
2017-12-17 19:31:05 +01:00
TuxSH
57d03d6333
Merge pull request #916 from LiquidFenrir/ramviewer-fix
...
Several ramviewer improvements
2017-12-17 03:31:36 +01:00
LiquidFenrir
0075fe2aa0
work with processes with code starting at 0x14000000
2017-12-16 19:26:55 +01:00
LiquidFenrir
d54417ac0a
explicit casting
2017-12-16 19:26:27 +01:00
LiquidFenrir
648801d432
make pressing X accidentally twice less punitive
2017-12-16 04:30:40 +01:00
LiquidFenrir
2be2826b0b
detect jumping address and change mode accordingly
2017-12-16 04:14:21 +01:00
LiquidFenrir
37a9fa1bf4
work again with heapless processes, and show wether you're currently viewing heap or code on screen (apart from the address)
2017-12-14 17:03:13 +01:00
LiquidFenrir
65af93c8ce
other display for entering goto
2017-12-07 22:07:53 +01:00
LiquidFenrir
8353b84944
fix dump filename
2017-12-07 20:07:44 +01:00
LiquidFenrir
d6a89db495
make use of values defined in draw.h
2017-12-07 19:56:36 +01:00
LiquidFenrir
f156aa8cdb
add dumper
...
mostly a copy of the screenshotting function/from #937
2017-12-07 19:53:44 +01:00
LiquidFenrir
f9adbcc9d9
fix same-name variables
2017-12-07 18:23:29 +01:00
TuxSH
cf8696ac70
Disable non-process memory access by default (see below), remove IDA 6.8 support...
...
The physical memory access "bit31" mapping (0--0x30000000 => 0x80000000--0xB0000000) as well as privileged (kernel) mappings confuse debugger clients like IDA's which interpret the value of the registers.
Access to those mappings can be toggled using "monitor toggleextmemaccess" instead (issue reported by @Nanquitas). Closes #943 .
Additionally, support for the buggy IDA 6.8's buggy gdb client was removed. Please use IDA 7.0 or higher.
P.S: IDA 7.0 added client support for no-ack mode (Debugging options > Set specific options), which should be enabled to make debugging twice as smooth. "Use stepping support" should be unchecked.
2017-11-26 02:18:59 +01:00
Alex Taber
c9701f93b9
Switch to APT_ResetHardwareAsync() for reboot ( Closes #831 )
2017-11-23 20:32:26 -05:00
Asuka Amari
09bfdb9ee1
removed unused variable
2017-11-22 07:03:00 +01:00
Nanquitas
1c2e8dec11
Fix the impossibility to set a second watchpoint
2017-11-22 03:37:23 +01:00
TuxSH
506b16db37
Fix watchpoints handling (huge thanks to @Nanquitas)
2017-11-22 01:24:35 +01:00
Asuka Amari
8f03234e58
screenshots now use timestamps as name
...
Instead of being called top_XXXX.bmp where XXXX means nothing,
screenshots are now called YYYY-MM-DD_HH-MM-SS.mmm_top.bmp (and same
idea for bot and top_right).
First obvious consequence, this is easier to manage in a file browser.
Now you have screenshots grouped by time, and you also have the 2 or 3
related screenshots (top, bot, top_right) close one to another.
Another consequence is that there is no need to go through existing
screenshots to find an unused number. Now osGetTime takes care of
everything. And going through files was a very time consuming process.
Now screenshots only need 4 (or 6 if 3D) seconds to be saved (instead of
40 seconds if you had 200 screenshots in your directory already).
Conflicts may happen when people change the date and time on their 3DS,
but that's why I even included milliseconds in the timestamp. People
don't set date and time everyday and they'd be unlucky to take a
screenshot at the exact time, milliseconds included, as another
screenshot right after setting the time one hour earlier...
Source for converting seconds since 1970 (or 1900...) to date and time:
https://stackoverflow.com/questions/21593692/
2017-11-18 16:37:35 +01:00
TuxSH
44b5e10323
Fix N3DS menu entry
2017-11-10 20:51:52 +01:00
LiquidFenrir
48303604b0
show address instead of offset when jumping
2017-11-05 06:56:54 +01:00
LiquidFenrir
ab2ddbc2ee
fix visible blank
...
if jumping too close to the end, the cursor won't be at the top to avoid the blank
2017-11-05 06:48:56 +01:00
LiquidFenrir
9495bf30bf
make jumping put the cursor at the top row
...
downside: when jumping near the end, a blank is visible
2017-11-05 06:30:41 +01:00
TuxSH
a4899a1bec
Remove redundant variables in Makefile
2017-11-03 19:03:17 +01:00
LiquidFenrir
882c6cf0d4
show the "main" address to distinguish between heap and code
2017-11-03 02:19:15 +01:00
LiquidFenrir
a5e18c82d1
reset scrolling when changing modes to avoid problems when the sizes dont match
2017-11-03 02:15:28 +01:00
TuxSH
22a8661fe1
Always patch FS and P9, remove SM service checks
2017-11-02 21:52:14 +01:00
LiquidFenrir
76dde0e6db
Add ram viewer/editor ( #877 )
...
Huge thanks to @LiquidFenrir
2017-10-24 18:35:15 +02:00
Aurora Wright
188400c5a9
Use ctrulib functions for mcu/battery level
2017-10-05 18:41:11 +02:00
TuxSH
d63fc2bc82
Fix latest commit
2017-09-24 19:31:38 +02:00
TuxSH
8e31784996
Fix thumb breakpoint handling
2017-09-24 17:58:23 +02:00
Aurora Wright
f27cdb4543
Also fix RBGA4 (untested)
2017-09-23 22:34:28 +02:00
Dan Elkouby
97bef66018
Fix RGB5_A1 conversion
2017-09-23 15:01:11 +03:00
TuxSH
ca2622af7c
Fix #778
2017-08-16 23:46:36 +02:00
Hikari-chin
322a7050aa
Fix #791
2017-08-15 09:01:48 -04:00
Nanquitas
f235bc83a8
Watchpoints: fix read DSCR to enable MonitorMode
2017-08-14 16:10:50 +02:00
LiquidFenrir
7e74258363
check if nwm is running to fix https://github.com/AuroraWright/Luma3DS/issues/774
2017-08-11 04:29:38 +02:00
Dan Elkouby
62932a9639
Fix input redirection title index in the menu
...
This option is the third, not the fourth, and toggling it will override
the "save settings" option's title instead.
2017-08-06 23:56:00 +03:00
Hikari-chin
a4629e4b65
Cleaned up and rearranged the Rosalina menu in preparation for future features
2017-08-01 17:38:48 +02:00