mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Bug 102386: double-clicking on a disassembly line in the disassembly view does not add a breakpoint.
This commit is contained in:
parent
700bf57ccc
commit
47dfe9b49c
2 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-06-30 Mikhail Khodjaiants
|
||||
Bug 102386: double-clicking on a disassembly line in the disassembly view does not add a breakpoint.
|
||||
* ToggleBreakpointAdapter.java
|
||||
|
||||
2005-06-29 Mikhail Khodjaiants
|
||||
Bug 41725: I can't set a breakpoint in a function where I used attach source.
|
||||
Bug 45514: Breakpoints made is assembly view do not show in C view.
|
||||
|
|
|
@ -476,11 +476,13 @@ public class ToggleBreakpointAdapter implements IToggleBreakpointsTarget {
|
|||
}
|
||||
|
||||
private IResource getAddressBreakpointResource( String fileName ) {
|
||||
IPath path = new Path( fileName );
|
||||
if ( path.isValidPath( fileName ) ) {
|
||||
IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation( path );
|
||||
if ( files.length > 0 )
|
||||
return files[0];
|
||||
if ( fileName != null ) {
|
||||
IPath path = new Path( fileName );
|
||||
if ( path.isValidPath( fileName ) ) {
|
||||
IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation( path );
|
||||
if ( files.length > 0 )
|
||||
return files[0];
|
||||
}
|
||||
}
|
||||
return ResourcesPlugin.getWorkspace().getRoot();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue