Fix latent bug in set_is_exec_point_at
[deliverable/binutils-gdb.git] / gdb / tui / tui-winsource.c
index 93c6253fd658d9cbe10b4ceccdbe0cc6c233769c..6ec1f1bc0b6c72adae0ea02d85f54100bd780a6f 100644 (file)
@@ -365,7 +365,7 @@ tui_source_window_base::set_is_exec_point_at (struct tui_line_or_address l)
                  || content_loa.loa == LOA_ADDRESS);
       if (content_loa.loa == l.loa
          && ((l.loa == LOA_LINE && content_loa.u.line_no == l.u.line_no)
-              || (content_loa.u.addr == l.u.addr)))
+              || (l.loa == LOA_ADDRESS && content_loa.u.addr == l.u.addr)))
         new_state = true;
       else
        new_state = false;
This page took 0.044551 seconds and 4 git commands to generate.