This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 202442 - *fortran* 77 - debugger won't stop at breakpoints.
Summary: *fortran* 77 - debugger won't stop at breakpoints.
Status: RESOLVED DUPLICATE of bug 201670
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 16:19 UTC by lurqu01
Modified: 2011-09-29 21:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lurqu01 2011-09-21 16:19:24 UTC
Hello,

I have seen this problem reported in a few areas, but after following the recommendations I still wasn't able to resolve the problem. If I am posting in the wrong place I apologize :). 

Below are the procedures I followed:

1) New project>C/C++>Fortran Hello World Application
2) Project Name: Hello_2, 
   project location C:\cygwin\home\user
   project folder C:\cygwin\home\user\Hello_2
   Tool Collection Default(Cygwin_4.x (GNU 4.x Compiler Collection from Cygwin))
3) This creates the default foo.f and bar.f example.
4) Open foo.f
5) Set breakpoint (two methods were tested, simply clicking in the left column as well as setting a breakpoint by: debug>New Breakpoint
6)click Debug main project and the program builds and runs but does not stop at the set breakpoint.

A few other comments:

- When I work with F90 files, there does not seem to be a problem. Generally breakpoints work fine.
- When I build the program in the cygwin bash shell I can set break points with gdb and step through it.
- I also tried a different directory rather than my cygwin directory. I used the directory C:\work as the main directory. But still had the same problem.

If you require any more information, please do not hesitate to ask.

Thanks for you time,

L
Comment 1 Egor Ushakov 2011-09-27 13:41:17 UTC
something is broken in windows file paths, I can see that we use incorrect separators:
-break-insert "C:/.../bar.f:32"
Comment 2 Egor Ushakov 2011-09-27 15:22:54 UTC
what gdb version were you using?
Comment 3 Egor Ushakov 2011-09-29 13:09:24 UTC

*** This bug has been marked as a duplicate of bug 201670 ***
Comment 4 Egor Ushakov 2011-09-29 13:09:42 UTC
workaround is to run IDE with the flag:
netbeans.exe -J-Dgdb.breakpoints.shortpaths=true
Comment 5 lurqu01 2011-09-29 21:11:33 UTC
(In reply to comment #2)
> what gdb version were you using?

Sorry for the delay. Thanks for getting back to me. Here is GDB info if it is still of any benefit.

GNU gdb (GDB) 7.3.50.20110727-cvs (cygwin-special)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.