<feed xmlns='http://www.w3.org/2005/Atom'>
<title>melonDS/src/debug/gdb_test, branch master</title>
<subtitle>modified version of melonDS used for school/vsr</subtitle>
<id>https://git.pipeframe.xyz/fork/melonDS/atom?h=master</id>
<link rel='self' href='https://git.pipeframe.xyz/fork/melonDS/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.pipeframe.xyz/fork/melonDS/'/>
<updated>2023-10-22T13:35:31+00:00</updated>
<entry>
<title>GDB stub (#1583)</title>
<updated>2023-10-22T13:35:31+00:00</updated>
<author>
<name>PoroCYon</name>
<email>3253268+PoroCYon@users.noreply.github.com</email>
</author>
<published>2023-10-22T13:35:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.pipeframe.xyz/fork/melonDS/commit/?id=3ab752b8ca7878246c3d7f8a338a8bc3b0de26dd'/>
<id>urn:sha1:3ab752b8ca7878246c3d7f8a338a8bc3b0de26dd</id>
<content type='text'>
* gdbstub beginnings

* gdbstub: finish gdb impl things, next up is integration with melonDS

* holy fuck the gdbstub works

* gdb breakpoints work, but there's a mysterious crash on continue

* fix memory corruption that sometimes happened, and make resetting the console thru gdb work

* remove some gdb debug printing

* fix things in gdbstub

* separate option for enabling gdbstub

* add mode-dependent CPU registers

* C++ize the GDBstub code

* add gdbstub config in emu settings dialog

* make sure gdb is disabled when jit is enabled

* Remove unnecessary compiler flags, mark ARMJIT assembly code as no-execute-stack

This hardens the binary a little bit against common exploitation methods

* add option to wait for debugger attach on startup

* only insert GNU stack notes on linux

* disable gdbstub enable checkbox when jit is enabled

* fix non-linux incompatibilities

* enable gdbstub by default

* fix issues with gdbstub settings disable stuff

* format stuff

* update gdb test code

* Fix segfault when calling StubCallbacks-&gt;GetCPU()

C++ overrides are hard. Please I'm just a lowly C programmer.

* fix packet size not being sent correctly

Thanks to @GlowingUmbreon on Github for troubleshooting this

* fix select(2) calls (i should read docs more properly)

* fix GDB command sequencing/parsing issue (hopefully)

* [GDB] implement no-ack mode

* fix sending ack on handshake

* get lldb to work</content>
</entry>
</feed>
