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 195684 - Window-->debugger-->disassembly does not work for inline methods
Summary: Window-->debugger-->disassembly does not work for inline methods
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 00:33 UTC by tbrunhoff
Modified: 2017-04-08 03:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of the disassembly window (120.77 KB, image/png)
2011-02-19 00:33 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2011-02-19 00:33:00 UTC
Created attachment 106180 [details]
screenshot of the disassembly window

When I select Window-->debugger-->disassembly during a debug session in a .cc file, it works fine.  If, however, the current stack frame is in an inline method, the screen will flash what looks like assembly code and go blank. See attachment. Yes, -g is in effect for the compile.
Comment 1 tbrunhoff 2011-02-19 00:34:17 UTC
Product Version: NetBeans IDE Dev (Build 201102170501)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Linux version 2.6.35.10-74.fc14.x86_64 running on i386; UTF-8; en_US (nb)
Userdir: /home/toddb/.netbeans/dev
Comment 2 Egor Ushakov 2011-02-22 00:27:05 UTC
could you please provide steps to reproduce the issue,
did you activate a frame or just stepped?
Comment 3 tbrunhoff 2011-02-22 05:34:41 UTC
> could you please provide steps to reproduce the issue

Hmm... The code I work on is quite large (> 1M lines). I could try to write you a project... could I suggest:
- create code in a c++ class, declarations in foo.h, implementation in foo.cc
- implement method A in the .cc file
- implement method B as an inline in a .h file
- step into A and open the disassembly windows (should work)
- step into B and open the disassembly window (should be blank)

If its not blank, then there is some other factor.

> did you activate a frame or just stepped?

Both
Comment 4 Egor Ushakov 2011-02-22 23:14:58 UTC
I will try, could you at the same time try console gdb to be sure that this is not gdb problem?
Comment 5 Egor Ushakov 2011-02-22 23:26:37 UTC
reproduced, will try to fix
Comment 6 Egor Ushakov 2011-02-23 19:39:03 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/53015e08808f
Comment 7 Quality Engineering 2011-02-24 05:34:38 UTC
Integrated into 'main-golden', will be available in build *201102240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/53015e08808f
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #195684 (disassembly does not work for inline methods)
Comment 8 Quality Engineering 2017-04-08 03:06:44 UTC
Integrated into 'main-silver', will be available in build *201704080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9508a657fe53
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #195684 (disassembly does not work for inline methods)