Browse Source

fixed issue with removing breakpoints

Fixes #212
merge-requests/365/head
milleniumbug 10 years ago
parent
commit
32c11e64cb
No known key found for this signature in database
GPG Key ID: E069867FCF5D84EA
  1. 1
      src/debug_clang.cc

1
src/debug_clang.cc

@ -463,6 +463,7 @@ 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();
breakpoint_path = boost::filesystem::canonical(breakpoint_path);
if(breakpoint_path==file_path) { if(breakpoint_path==file_path) {
if(!target.BreakpointDelete(breakpoint.GetID())) if(!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);

Loading…
Cancel
Save