diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-05 23:36:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-05 23:36:26 -0400 |
commit | f1b93d63d14236f0c17403df3bda830dc5fcd3a4 (patch) | |
tree | 407363978389dcb0bb38781282673f1d43529e00 /src/core/gdbstub/gdbstub.h | |
parent | 03b7ebbc08761dcf144ab04d34530cdf2e9ad7c7 (diff) | |
parent | 00f7e584cef1abbcec3f52c81275cce1e4c8f3d3 (diff) |
Merge pull request #929 from lioncash/addr
gdbstub: Minor changes
Diffstat (limited to 'src/core/gdbstub/gdbstub.h')
-rw-r--r-- | src/core/gdbstub/gdbstub.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h index a6b50c26c..5a36524b2 100644 --- a/src/core/gdbstub/gdbstub.h +++ b/src/core/gdbstub/gdbstub.h @@ -22,7 +22,7 @@ enum class BreakpointType { }; struct BreakpointAddress { - PAddr address; + VAddr address; BreakpointType type; }; @@ -53,7 +53,7 @@ bool IsServerEnabled(); bool IsConnected(); /// Register module. -void RegisterModule(std::string name, PAddr beg, PAddr end, bool add_elf_ext = true); +void RegisterModule(std::string name, VAddr beg, VAddr end, bool add_elf_ext = true); /** * Signal to the gdbstub server that it should halt CPU execution. @@ -74,7 +74,7 @@ void HandlePacket(); * @param addr Address to search from. * @param type Type of breakpoint. */ -BreakpointAddress GetNextBreakpointFromAddress(PAddr addr, GDBStub::BreakpointType type); +BreakpointAddress GetNextBreakpointFromAddress(VAddr addr, GDBStub::BreakpointType type); /** * Check if a breakpoint of the specified type exists at the given address. @@ -82,7 +82,7 @@ BreakpointAddress GetNextBreakpointFromAddress(PAddr addr, GDBStub::BreakpointTy * @param addr Address of breakpoint. * @param type Type of breakpoint. */ -bool CheckBreakpoint(PAddr addr, GDBStub::BreakpointType type); +bool CheckBreakpoint(VAddr addr, GDBStub::BreakpointType type); /// If set to true, the CPU will halt at the beginning of the next CPU loop. bool GetCpuHaltFlag(); |