Skip to content

Commit

Permalink
Remove all places where the code checks for the view name "Debugger"
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Jul 1, 2024
1 parent cc30944 commit ac338b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions core/debuggercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1390,9 +1390,6 @@ DbgRef<DebuggerController> DebuggerController::GetController(BinaryViewRef data)
return controller;
}

if (data->GetTypeName() == "Debugger")
return nullptr;

auto controller = new DebuggerController(data);
g_debuggerControllers = (DbgRef<DebuggerController>*)realloc(g_debuggerControllers,
sizeof(DbgRef<DebuggerController>) * (g_controllerCount + 1));
Expand Down
3 changes: 2 additions & 1 deletion ui/breakpointswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ void DebugBreakpointsWidget::add()
return;

bool isAbsoluteAddress = false;
if (view->GetTypeName() == "Debugger")
auto controller = DebuggerController::GetController(view);
if (controller->IsConnected())
isAbsoluteAddress = true;

if (isAbsoluteAddress)
Expand Down

0 comments on commit ac338b6

Please sign in to comment.