Skip to content

Commit

Permalink
Fix bug about debuggerCommand().
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
  • Loading branch information
audetto committed May 18, 2021
1 parent b65e67e commit 1ac7710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions source/frontends/sdl/imgui/sdlsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ namespace sa2
ImGui::End();
}

void ImGuiSettings::drawDisassemblyTable()
void ImGuiSettings::drawDisassemblyTable(SDLFrame * frame)
{
const ImGuiTableFlags flags = ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_ScrollY;
if (ImGui::BeginTable("Disassembly", 9, flags))
Expand Down Expand Up @@ -818,8 +818,8 @@ namespace sa2
{
if (!breakpointActive && state == 1)
{
std::string command = std::string("bpx ") + line.sAddress;
debuggerCommand(command.c_str());
const std::string command = std::string("bpx ") + line.sAddress;
debuggerCommand(frame, command.c_str());
}
else
{
Expand Down Expand Up @@ -1003,7 +1003,7 @@ namespace sa2
DisasmCalcTopBotAddress();
}

drawDisassemblyTable();
drawDisassemblyTable(frame);
ImGui::EndTabItem();
}
if (ImGui::BeginTabItem("Console"))
Expand Down
2 changes: 1 addition & 1 deletion source/frontends/sdl/imgui/sdlsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace sa2
void showMemory();
void showAboutWindow();

void drawDisassemblyTable();
void drawDisassemblyTable(SDLFrame * frame);
void drawConsole();

void debuggerCommand(SDLFrame * frame, const char * s);
Expand Down

0 comments on commit 1ac7710

Please sign in to comment.