Browse Source

Merge branch 'breakpoints' of https://github.com/milleniumbug/jucipp

merge-requests/365/head
eidheim 10 years ago
parent
commit
cd320d3bd5
  1. 4
      src/debug_clang.cc

4
src/debug_clang.cc

@ -463,8 +463,10 @@ void Debug::Clang::remove_breakpoint(const boost::filesystem::path &file_path, i
auto file_spec=line_entry.GetFileSpec(); auto file_spec=line_entry.GetFileSpec();
boost::filesystem::path breakpoint_path=file_spec.GetDirectory(); boost::filesystem::path breakpoint_path=file_spec.GetDirectory();
breakpoint_path/=file_spec.GetFilename(); breakpoint_path/=file_spec.GetFilename();
boost::system::error_code ec;
breakpoint_path = boost::filesystem::canonical(breakpoint_path, ec);
if(breakpoint_path==file_path) { if(breakpoint_path==file_path) {
if(!target.BreakpointDelete(breakpoint.GetID())) if(!ec || !target.BreakpointDelete(breakpoint.GetID()))
Terminal::get().async_print("Error (debug): Could not delete breakpoint at: "+file_path.string()+":"+std::to_string(line_nr)+'\n', true); Terminal::get().async_print("Error (debug): Could not delete breakpoint at: "+file_path.string()+":"+std::to_string(line_nr)+'\n', true);
return; return;
} }

Loading…
Cancel
Save