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 269684 - Some of register values in disassembly tooltip is shown as decimal
Summary: Some of register values in disassembly tooltip is shown as decimal
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-30 12:04 UTC by soldatov
Modified: 2017-04-22 18:04 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 soldatov 2017-01-30 12:04:20 UTC
Issue 199557 can be reproduced in NetBeans 8.2 too. I see failed test on one of platforms too. Test checks real C++ code, therefore IDE checks different registers on different platforms.

C code (Solaris x86 only):
int main() {
    int i = 0;
    asm("movl %ebp, %eax");
    asm("movl %esp, %eax");
    asm("movl %esi, %eax");
    asm("movl %eax, %eax");
    asm("movl %ebx, %eax");
    asm("movl %ecx, %eax");
    asm("movl %edx, %eax");
//    asm("movl $0xF2345678, %eax");
//    asm("movl $0x12345678, %eax");
//    asm("movl $0xFFFFFFFF, %eax");
//    asm("movl $0xFFFFFFFE, %eax");
//    asm("movl $0x0, %eax");
    return (0);
}

Scenario:
- Build project
- Call context menu on project's node and select Step Into
- Call context menu in editor and select Disassembly
- Move cursor on ebp, esp, esi, eax, ebx, ecx, edx registers in editor
==>
I see hexadecimal values in tooltip if I check ebp and esp registers.
I see decimal value if I check esi, eax, ebx, ecx or edx registers.

P.S. I see same result if I type 'print $esp' or 'print $eax' in Gdb console.
Comment 1 soldatov 2017-01-30 12:06:00 UTC
See issue 129094 too.
Comment 2 Maria Tishkova 2017-04-10 09:24:53 UTC
fixed in enum/release82

changeset:   315455:89f463b56efc
branch:      release82
tag:         tip
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Mon Apr 10 12:06:06 2017 +0300
summary:     added fix to bz#269684 - spec version incrementation

changeset:   315454:600187701d97
branch:      release82
parent:      315447:d49fb99bac43
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Mon Apr 10 12:06:02 2017 +0300
summary:     fixed bz#269684 - Some of register values in disassembly tooltip is shown as decimal
Comment 3 ilia 2017-04-13 10:35:19 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=269684 Changesets:
    http://hg.netbeans.org/releases/rev/600187701d97 # fixed bz#269684 - Some of register values in disassembly tooltip is shown as decimal
    http://hg.netbeans.org/releases/rev/89f463b56efc # added fix to bz#269684 - spec version incrementation
    http://hg.netbeans.org/releases/rev/87947e0350c6 # added fix to bz#269684 - i18n
Comment 4 Quality Engineering 2017-04-14 01:53:39 UTC
Integrated into 'main-silver', will be available in build *201704140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/076e7f5b4dc3
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#269684 - Some of register values in disassembly tooltip is shown as decimal
started work on bz#129094 - Allow user to select register values presentation
(transplanted from 600187701d97323e4a097b8181cd2f340c1732f6)
Comment 5 soldatov 2017-04-20 09:03:52 UTC
I don't see any changes in NetBeans IDE 8.2 (Build 201704181436)
Comment 6 Maria Tishkova 2017-04-20 12:41:23 UTC
added fix to enum/release82

changeset:   315691:6f80c09ac0fa
branch:      release82
tag:         tip
parent:      315668:a33a9f332e95
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Thu Apr 20 15:40:29 2017 +0300
summary:     added fix to bz#269684 - Some of register values in disassembly tooltip is shown as decimal
Comment 7 Quality Engineering 2017-04-22 01:52:29 UTC
Integrated into 'main-silver', will be available in build *201704220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b2a8bcb7d6ee
User: Maria Dalmatova <mromashova@netbeans.org>
Log: added fix to bz#269684 - Some of register values in disassembly tooltip is shown as decimal
(transplanted from 6f80c09ac0fad326ba8dfebf9c2b915fdc2cc985)
Comment 8 soldatov 2017-04-22 18:04:46 UTC
Verified in NetBeans IDE 8.2 (Build 201704210828)