Commit Graph

50 Commits (89c076b4b10a79244514e31466802b5b6fda07a4)

Author SHA1 Message Date
Lioncash 89c076b4b1 gdbstub: Move all file-static variables into the GDBStub namespace
Keeps everything under the same namespace. While we're at it, enclose
them all within an inner anonymous namespace.
7 years ago
Lioncash ca96f8db4e gdbstub: Replace PAddr alias with VAddr
In all cases, a virtual address is being passed in, not a physical one.
7 years ago
Lioncash bf45092c61 kernel: Move object class to its own source files
General moving to keep kernel object types separate from the direct
kernel code. Also essentially a preliminary cleanup before eliminating
global kernel state in the kernel code.
7 years ago
Lioncash c945226973 gdbstub: Get rid of a few signed/unsigned comparisons
Ensures both operands in comparisons are the same signedness.
7 years ago
Hedges e066bc75b9 More improvements to GDBStub (#653)
* More improvements to GDBStub
- Debugging of threads should work correctly with source and assembly level stepping and modifying registers and memory, meaning threads and callstacks are fully clickable in VS.
- List of modules is available to the client, with assumption that .nro and .nso are backed up by an .elf with symbols, while deconstructed ROMs keep N names.
- Initial support for floating point registers.

* Tidy up as requested in PR feedback

* Tidy up as requested in PR feedback
7 years ago
James Rowe 0d46f0df12 Update clang format 7 years ago
James Rowe 638956aa81 Rename logging macro back to LOG_* 7 years ago
Hedges 39fb3e362c GDB Stub Improvements (#508)
* GDB Stub should work now.

* Applied clang-format.

* Replaced htonll with swap64.

* Tidy up.
7 years ago
bunnei a434fdcb10 core: Implement multicore support. 7 years ago
Lioncash 623d772476
core/gdbstub: Move logging macros to new fmt-compatible ones 7 years ago
N00byKing ef875d6a35 Clean Warnings (?) 7 years ago
Lioncash 51ce224a96
gdbstub: Silence formatting specifier warnings 7 years ago
Rozlette 425a78ec1b gdbstub: Update registers and sizes for aarch64
This gets gdbstub working at least to the point where clients can
communicate with it.

What works:
- Reading/writing GPRegs
- Reading/writing memory
- Interrupting the emulated program and continuing

What does NOT work:
- Breakpoints. Sizes have been updated to u64, but support will need to be
  added in the interpreter for them to work.
- VRegs. Mostly because my gdb was having issues with 128-bit regs for
  some reason. However, the current u128 representation is a bit
  awkward to use and should probably be updated first.
7 years ago
River City Ransomware dd62f125c3 Fixes some cast warnings, partial port of citra #3064 (#106)
* Fixes some cast warnings, partially fixes citra #3064

* Converted casts to uint32_t to u32

* Ran clang-format
7 years ago
River City Ransomware d05dc3f4dd Fix gdbstub typo, fixes Citra #3318
Core::System().GetInstance().IsPoweredOn() -> Core::System::GetInstance().IsPoweredOn()
7 years ago
bunnei b172f0d770 arm: Remove SkyEye/Dyncom code that is ARMv6-only. 7 years ago
Subv 7772fc0731 Memory: Remove all GetPointer usages from the GDB stub. 8 years ago
Huw Pascoe a13ab958cb Fixed type conversion ambiguity 8 years ago
Mat M 0cb52ee74a Doxygen: Amend minor issues (#2593)
Corrects a few issues with regards to Doxygen documentation, for example:

- Incorrect parameter referencing.
- Missing @param tags.
- Typos in @param tags.

and a few minor other issues.
8 years ago
Jonathan Hao c18cb1b192 Fix some warnings (#2399) 8 years ago
bunnei e26fbfd1d7 core: Replace "AppCore" nomenclature with just "CPU". 8 years ago
bunnei 5ac5cbeab7 Address clang-format issues. 8 years ago
bunnei 232ef55c1a core: Consolidate core and system state, remove system module & cleanups. 8 years ago
Lioncash 38a964735f gdbstub: const correctness changes
Also uses size_t as the length indicator type, as is common with buffers.
8 years ago
Lioncash ba20dd9b61 gdbstub: Remove global variable from public interface
Currently, this is only ever queried, so adding a function to check if the
server is enabled is more sensible.

If directly modifying this externally is ever desirable, it should be done
by adding a function to the interface, rather than exposing implementation
details directly.
8 years ago
Jannik Vogel 0aee903ada gdbstub: Remove unused include 8 years ago
Jannik Vogel 45d941d62e Support mingw cross-compile 8 years ago
James Rowe c3ea6f4ddb Add mingw compile support 9 years ago
mailwl 3c37ee434a Small fix to let IDA see target.xml 9 years ago
Yuri Kunde Schlesner f120e78b56 Remove special rules for Windows.h and library includes 9 years ago
Emmanuel Gil Peyrot dc8479928c Sources: Run clang-format on everything. 9 years ago
shinyquagsire23 c6f87f7e2c gdbstub: E0 should be E00 9 years ago
Lioncash 0a52e1f587 gdbstub: Silence missing prototype warnings 9 years ago
Alexander Laties 0a31e373f1 fixup simple type conversions where possible 9 years ago
Sam Spilsbury 41ec40e9aa gdbstub: Don't check if unsigned int is > 0 9 years ago
polaris- 44d746fc92 Adopted WinterMute's gdbstub changes
This fixes the comments left on the PR (whitespace, SO_REUSEADDR,
comment changes).
9 years ago
polaris- 2732ec758d Fix read and write register blocks in gdbstub
Previously, the padding wasn't correctly accounted for which caused the gdbstub to read and write everything after R15 (starting with the dummy FPA registers) incorrectly, which caused CPSR to not be handled correctly. Everything appears to be working as expected with this change.
10 years ago
polaris- bcea959910 Fix bug with reading addresses and lengths 10 years ago
polaris- b6422038b5 Change headers 10 years ago
polaris- a7eb6a4045 Add some headers so TravisCI will hopefully work 10 years ago
polaris- 45ed9e7e5e Use CHAR_BIT instead of 8 10 years ago
polaris- a5ab8accc2 Handle changes pointed out in comments on PR 10 years ago
polaris- d1f73c424f Add a register variable to loops 10 years ago
polaris- d7e346239b Update register read loops to go with last commit 10 years ago
polaris- 8a0d848646 Pad responses to gdb for VFP registers 10 years ago
polaris- 53aa55fcaa Try to add support for VFP registers 10 years ago
polaris- 9f66580d7e Fix buffer overflow comments 10 years ago
polaris- 2b7316a379 Remove unnecessary new lines, changed Deinit to Shutdown 10 years ago
polaris- 42928659e8 Use BreakpointAddress struct instead of passing address directly 10 years ago
polaris- 31dee93e84 Implement gdbstub 10 years ago