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 192858 - Corrupted Disassembly on Windows
Summary: Corrupted Disassembly on Windows
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-03 16:34 UTC by Alexander Pepin
Modified: 2016-07-06 14:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Disassembly screenshot (135.21 KB, image/png)
2010-12-03 16:34 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2010-12-03 16:34:08 UTC
Created attachment 103589 [details]
Disassembly screenshot

It's a regression.
Disassembly shows only small part of the code (see attached screenshot).
Comment 1 Egor Ushakov 2010-12-06 16:04:22 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/a442a0237788
Comment 2 Quality Engineering 2010-12-07 06:13:27 UTC
Integrated into 'main-golden', will be available in build *201012070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a442a0237788
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #192858 (Corrupted Disassembly on Windows)
Comment 3 Alexander Pepin 2010-12-07 14:51:47 UTC
In build 20101207 Disassembly still looks incomplete:
!int main(int argc, char**argv) {
main+0: lea    0x4(%esp),%ecx
main+4: and    $0xfffffff0,%esp
main+7: pushl  -0x4(%ecx)
main+10: push   %ebp
main+11: mov    %esp,%ebp
main+13: push   %ebx
main+14: push   %ecx
main+15: sub    $0x20,%esp
main+18: mov    %ecx,-0x1c(%ebp)
main+21: call   0x401310 <__main>
!    // Prints welcome message...
!    std::cout << "Welcome ..." << std::endl;
main+26: movl   $0x4020a0,0x4(%esp)
main+34: movl   $0x6c4f5a60,(%esp)
_fu0___ZSt4cout+4: call   0x4012a8 <_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
_fu0___ZSt4cout+9: movl   $0x4012c8,0x4(%esp)
_fu0___ZSt4cout+17: mov    %eax,(%esp)
_fu0___ZSt4cout+20: call   0x4012b0 <_ZNSolsEPFRSoS_E>
!
!    // Prints arguments...
!    if (argc > 1) {
_fu0___ZSt4cout()
_fu0___ZSt4cout+25: mov    -0x1c(%ebp),%eax
_fu0___ZSt4cout+28: cmpl   $0x1,(%eax)
_fu0___ZSt4cout+31: jle    0x401288 <_fu2___ZSt4cout+67>
!        std::cout << std::endl << "Arguments:" << std::endl;
_fu0___ZSt4cout+37: movl   $0x4012c8,0x4(%esp)
_fu0___ZSt4cout+45: movl   $0x6c4f5a60,(%esp)
!        for (int i = 1; i < argc; i++) {
!            std::cout << i << ": " << argv[i] << std::endl;
!        }
!    }
!    
!    return 0;
!}
Comment 4 Alexander Pepin 2010-12-07 15:17:25 UTC
The regression is fixed now. Now it works similarly to NB6.9.1 with the same tool collection. The bug is downgraded to P3.
Comment 5 Egor Ushakov 2010-12-10 13:29:41 UTC
so what's left to fix here?
Comment 6 Egor Ushakov 2010-12-10 13:34:50 UTC
we show exactly what gdb provides plus source code in comments
Comment 7 Alexander Pepin 2010-12-10 13:56:52 UTC
It would be nice to see real disassembly.