Views: 6,864,176 | Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 04-20-24 03:07 AM |
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: 1008 Next: 440 Since: 07-08-21 Last post: 93 days ago Last view: 93 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/592 EXP: 585356 Next: 25929 Since: 10-12-19 Last post: 16 days ago Last view: 6 hours 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: 4705 Next: 1280 Since: 12-01-19 From: .be Last post: 250 days ago Last view: 247 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: 4705 Next: 1280 Since: 12-01-19 From: .be Last post: 250 days ago Last view: 247 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.023 seconds. (2048KB of memory used) MySQL - queries: 29, rows: 86/86, time: 0.016 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |