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 255321 - Remote debugging on Mac opens disassembly window on breakpoints
Summary: Remote debugging on Mac opens disassembly window on breakpoints
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0.2
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-16 09:58 UTC by Marc_W
Modified: 2015-11-10 07:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gdb-cmds7836711600494957902.log (16.08 KB, text/plain)
2015-09-16 09:58 UTC, Marc_W
Details
cnd_diagnostics_2015-09-25T08_17_51.txt (38.81 KB, text/plain)
2015-09-25 06:41 UTC, Marc_W
Details
gdb-cmds4076075992401198566.log (20.71 KB, application/octet-stream)
2015-09-25 06:41 UTC, Marc_W
Details
Disassembly output (3.20 KB, text/plain)
2015-10-08 14:18 UTC, Marc_W
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc_W 2015-09-16 09:58:31 UTC
Created attachment 156206 [details]
gdb-cmds7836711600494957902.log

I’m using NetBeans on Mac OS X 10.10.5 with the remote development functionality.

The remote System is a Ubuntu 14.10 with gcc (Ubuntu 4.9.1-16ubuntu6) 4.9.1 and gdb (Ubuntu 7.8-1ubuntu4) 7.8.0.20141001-cvs. Building the project works perfect, but if I want to debug the project and it hits a breakpoint I don’t end up in the specific source file, but I get a disassembly tab of the function I wanted to inspect.

This happens with the official NetBeans IDE 8.0.2 (Build 201411181905), NetBeans IDE 8.1 Beta (Build 201508041349) and also with the nightly build NetBeans IDE Dev (Build 201509160002).

The binary is compiled with debugging informations and if I debug it with a locally started NetBeans on the Ubuntu system it works as expected.

The edited gdb output logs are are attached.

Comparing the locally started gdb commands with the remote ones the significant difference is the last command on the Mac:

24-data-disassemble -f "/path/to/project/main.c" -l 85 -- 1

Is this a known misbehavior or is there a option to disable the automatic disassembly?
Comment 1 henk89 2015-09-24 14:39:38 UTC
Could you please tell me where the project itself is located?
Also I'd like to know if switching to the source editor helps or not.
Comment 2 Marc_W 2015-09-25 06:41:21 UTC
Created attachment 156418 [details]
cnd_diagnostics_2015-09-25T08_17_51.txt
Comment 3 Marc_W 2015-09-25 06:41:50 UTC
Created attachment 156419 [details]
gdb-cmds4076075992401198566.log
Comment 4 Marc_W 2015-09-25 06:46:36 UTC
I reduced my problem to a simple test program and attached two new diagnostic files. One cnd file and a new gdb-cmds file. I hope this will help you to get enough information about the project location. The path mapping is: LocalPath=/Volumes/mwdev64v9-Work/ RemotePath=/users/mw/mwdev64v9-Work/

Do you mean by switching to the source editor, to open the source file containing the main function? If yes, this doesn't help. I can't see the current line being debugged and if I 'step over', the IDE switches back to the disassembly file.
Comment 5 henk89 2015-09-25 08:21:37 UTC
It's not clear for me if you create a local project or a remote one.
No. There is the context menu item called "Go to source". Could you please try using it?
Comment 6 Marc_W 2015-09-25 09:22:00 UTC
I tried both. I created one on my local system and one on the remote system. For both projects it's the same result. If I open it on the remote Linux system with the local NetBeans IDE and debug the project I end up in the source file and if I debug it remote I end up in the disassembly view.

If I use the "Go To Source Code" the cursor jumps the the "Current Program Counter" in the disassembly view.
Comment 7 henk89 2015-09-25 13:45:41 UTC
There is an option for you to try. You may set the path mapping table manually. You should specify the table in the project properties
Comment 8 Marc_W 2015-09-28 06:03:00 UTC
I think the path mapping is already matching both directory trees. The local path is /Volumes/mwdev64v9-Work/ and the remote path is /users/mw/mwdev64v9-Work/.

Listing the local one with 'ls /Volumes/mwdev64v9-Work/Welcome_1':

Makefile	build		dist		nbproject	welcome.cc	welcome.h


Listing the remote one with 'ls /users/mw/mwdev64v9-Work/Welcome_1':

build  dist  Makefile  nbproject  welcome.cc  welcome.h


So the mapping should be fine, or do you recommend other paths?
Comment 9 henk89 2015-10-05 10:49:07 UTC
I recommend that you set this mapping manually in the project properties (on the Debug tab).
Comment 10 Marc_W 2015-10-08 11:50:25 UTC
I tried your suggestion and set this mapping manually in the project properties in the “Debug” tab as the “Substitute Path”. The “Compile Time Path Prefix” is “/users/mw/mwdev64v9-Work/Welcome_1” and the “Replacement Path Prefix” is “/Volumes/mwdev64v9-Work/Welcome_1”. But I still end up in the  disassembly tab.

Additionally I tried to set the “Working dir” to “/Volumes/mwdev64v9-Work/Welcome_1” and “Source dirs” to “.”, but that also doesn’t fix my problem.
Comment 11 Marc_W 2015-10-08 14:18:42 UTC
Created attachment 156627 [details]
Disassembly output
Comment 12 Marc_W 2015-10-08 14:20:01 UTC
I added the output of the disassembly tab. It contains some lines with "!Source not found, file: welcome.cc, line: ...".
Comment 13 Marc_W 2015-11-10 07:51:38 UTC
I tested this issue with NetBeans 8.1 and I can verify, that it is solved.