Skip to content

Commit 050f5df

Browse files
authored
Merge pull request #13189 from mitaclaw/gdb-stub-signal-breakpoints
GDBStub: Signal Breakpoint Changes To Host
2 parents 7f25e05 + 62d7166 commit 050f5df

File tree

8 files changed

+27
-0
lines changed

8 files changed

+27
-0
lines changed

Source/Android/jni/MainAndroid.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ void Host_PPCSymbolsChanged()
101101
{
102102
}
103103

104+
void Host_PPCBreakpointsChanged()
105+
{
106+
}
107+
104108
void Host_RefreshDSPDebuggerWindow()
105109
{
106110
}

Source/Core/Core/Host.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ bool Host_TASInputHasFocus();
5757

5858
void Host_Message(HostMessageID id);
5959
void Host_PPCSymbolsChanged();
60+
void Host_PPCBreakpointsChanged();
6061
void Host_RefreshDSPDebuggerWindow();
6162
void Host_RequestRenderWindowSize(int width, int height);
6263
void Host_UpdateDisasmDialog();

Source/Core/Core/PowerPC/GDBStub.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ static void RemoveBreakpoint(BreakpointType type, u32 addr, u32 len)
178178
INFO_LOG_FMT(GDB_STUB, "gdb: removed a memcheck: {:08x} bytes at {:08x}", len, addr);
179179
}
180180
}
181+
Host_PPCBreakpointsChanged();
181182
}
182183

183184
static void Nack()
@@ -896,6 +897,7 @@ static bool AddBreakpoint(BreakpointType type, u32 addr, u32 len)
896897
INFO_LOG_FMT(GDB_STUB, "gdb: added {} memcheck: {:08x} bytes at {:08x}", static_cast<int>(type),
897898
len, addr);
898899
}
900+
Host_PPCBreakpointsChanged();
899901
return true;
900902
}
901903

Source/Core/DolphinNoGUI/MainNoGUI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ void Host_PPCSymbolsChanged()
6161
{
6262
}
6363

64+
void Host_PPCBreakpointsChanged()
65+
{
66+
}
67+
6468
void Host_RefreshDSPDebuggerWindow()
6569
{
6670
}

Source/Core/DolphinQt/Host.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ void Host_PPCSymbolsChanged()
271271
QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->PPCSymbolsChanged(); });
272272
}
273273

274+
void Host_PPCBreakpointsChanged()
275+
{
276+
QueueOnObject(QApplication::instance(),
277+
[] { emit Host::GetInstance()->PPCBreakpointsChanged(); });
278+
}
279+
274280
// We ignore these, and their purpose should be questioned individually.
275281
// In particular, RequestRenderWindowSize, RequestFullscreen, and
276282
// UpdateMainFrame should almost certainly be removed.

Source/Core/DolphinTool/ToolHeadlessPlatform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ void Host_PPCSymbolsChanged()
2525
{
2626
}
2727

28+
void Host_PPCBreakpointsChanged()
29+
{
30+
}
31+
2832
void Host_RefreshDSPDebuggerWindow()
2933
{
3034
}

Source/DSPTool/StubHost.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ std::vector<std::string> Host_GetPreferredLocales()
1616
void Host_PPCSymbolsChanged()
1717
{
1818
}
19+
void Host_PPCBreakpointsChanged()
20+
{
21+
}
1922
void Host_RefreshDSPDebuggerWindow()
2023
{
2124
}

Source/UnitTests/StubHost.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ std::vector<std::string> Host_GetPreferredLocales()
1616
void Host_PPCSymbolsChanged()
1717
{
1818
}
19+
void Host_PPCBreakpointsChanged()
20+
{
21+
}
1922
void Host_RefreshDSPDebuggerWindow()
2023
{
2124
}

0 commit comments

Comments
 (0)