Views: 6,949,265 | Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 04-27-24 02:17 PM |
Guest: |
0 users reading Remote debugging - GDB | 1 bot |
Main - Development - Remote debugging - GDB | Hide post layouts | New reply |
Mighy Max |
| ||
Member Normal user Level: 7 Posts: 7/10 EXP: 1012 Next: 436 Since: 07-08-21 Last post: 101 days ago Last view: 101 days ago |
Heya,
I am currently working on a gdb server to be build into melonDS in a separate branch. It is basically a RSPServer class that can be attached to an ARM core and right now is instanced twice - once for each core. It has a bit of a performance hit (I'd say about -10%) so I intend it to only be useable in a special configured build. It's already connecting to gdb and can a least read-access both cores. But for what I searched, there is no non-hacky way to control or read the emulation state, or is there? There is an EmuThread in main.cpp that ontrols the emulation/execution state, but that is not exported in any way. Is there any idea as to how an API allowing getting the emulation state and controlling it should look like? Or how that emuThread should be de-tangled from main? A small peek: |
Generic aka RSDuck |
| ||
Big fire melon Administrator Level: 44 Posts: 384/593 EXP: 588165 Next: 23120 Since: 10-12-19 Last post: 6 days ago Last view: 1 day ago |
Posted by Mighy Max that's great news! I wouldn't implement it on the frontend side though. Instead I would implement it in the core so it would run on the emulator thread. You can access the current CPU state by including ARM.h, then they're acessible in the NDS namespace. ____________________ Take me to your heart / never let me go! "clearly you need to mow more lawns and buy a better pc" - Hydr8gon |
PoroCYon |
| ||
Half-eaten melon Normal user Level: 11 Posts: 16/24 EXP: 4716 Next: 1269 Since: 12-01-19 From: .be Last post: 257 days ago Last view: 254 days ago |
Hi, do you have any update on this? I just wanted to start on implementing a gdbstub myself, but if you have something working already, I could probably save myself the trouble. |
PoroCYon |
| ||
Half-eaten melon Normal user Level: 11 Posts: 17/24 EXP: 4716 Next: 1269 Since: 12-01-19 From: .be Last post: 257 days ago Last view: 254 days ago |
FYI, I ended up writing my own. Feedback would be nice. |
Main - Development - Remote debugging - GDB | Hide post layouts | New reply |
Page rendered in 0.030 seconds. (2048KB of memory used) MySQL - queries: 29, rows: 84/84, time: 0.021 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |