mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Fix infinite loop toggling breakpoint
* Also we don't set the custom assembly context menu when there is no trace to debug.
This commit is contained in:
@@ -287,7 +287,7 @@ namespace renderdocui.Windows
|
||||
{
|
||||
var line = sc.Lines.FromPosition(position);
|
||||
|
||||
while (line != null)
|
||||
while (line != null && line.StartPosition >= 0)
|
||||
{
|
||||
var trimmed = line.Text.Trim();
|
||||
|
||||
@@ -445,8 +445,11 @@ namespace renderdocui.Windows
|
||||
BreakpointMarkers.Add(BREAKPOINT_MARKER);
|
||||
BreakpointMarkers.Add(BREAKPOINT_MARKER + 1);
|
||||
|
||||
m_DisassemblyView.ContextMenu = AssemblyContextMenu();
|
||||
m_DisassemblyView.MouseDown += new MouseEventHandler(contextMouseDown);
|
||||
if (trace != null)
|
||||
{
|
||||
m_DisassemblyView.ContextMenu = AssemblyContextMenu();
|
||||
m_DisassemblyView.MouseDown += new MouseEventHandler(contextMouseDown);
|
||||
}
|
||||
|
||||
m_Scintillas.Add(m_DisassemblyView);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user