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 174453 - gdb from cygwin works incorrectly on Windows
Summary: gdb from cygwin works incorrectly on Windows
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-10-13 14:43 UTC by Alexander Pepin
Modified: 2009-10-13 19:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (123.92 KB, image/jpeg)
2009-10-13 18:57 UTC, Alexander Pepin
Details
gdb log (6.58 KB, text/plain)
2009-10-13 18:59 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-10-13 14:43:34 UTC
This is a regression on Windows.
Steps to reproduce:
- create local Quote sample
- set BP in 'fetchCustomersList'
- start debugging
- when it stops at BP do Step Over
Result: 'Step Over' takes about 10 seconds to complete then the current line becomes 'grey'. CallStack shows that
debugger stopped at constructor of 'Customer' class. All further steps are also incorrect.
Comment 1 Alexander Pepin 2009-10-13 18:55:46 UTC
Another test scenario:
- create local Welcome project
- modify source code to make endless loop:
    for(;;){
        if (argc > 1) {
            std::cout << std::endl << "Arguments:" << std::endl;
            for (int i = 1; i < argc; i++) {
                std::cout << i << ": " << argv[i] << std::endl;
            }
        }
        for(int k=0; k>0; k++);
    }

- set line BP at 'return' statement
- start debugger
Result: No output appear. Debugger stops unexpectedly in wrong line (after 'return'). Unexpected 'Call Stack' annotation
appears in the editor.
Comment 2 Alexander Pepin 2009-10-13 18:57:04 UTC
Created attachment 89392 [details]
screenshot
Comment 3 Alexander Pepin 2009-10-13 18:59:25 UTC
Created attachment 89393 [details]
gdb log
Comment 4 Alexander Pepin 2009-10-13 19:09:47 UTC
It's strange but command-line gdb in cygwin works the same way.