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 139186 - Regression: fail to find debugger for Sun Studio tool set on Solaris
Summary: Regression: fail to find debugger for Sun Studio tool set on Solaris
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-07 23:31 UTC by Thomas Preisler
Modified: 2008-07-08 02:02 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 Thomas Preisler 2008-07-07 23:31:01 UTC
This is on Solaris with locally installed Sun Studio compilers in /opt and /usr/bin (danmark.sfbay.sun.com). With 6.1
(Patch 2) the debugger command for Sun Studio tool sets is correctly resolved to:

  Debugger Command: /usr/sfw/bin/gdb

With today's (7/7/08) build, it is incorrectly resolved to:

  Debugger Command: /usr/sfw/bin
Comment 1 _ gordonp 2008-07-08 02:02:20 UTC
Fixed in http://hg.netbeans.org/main?cmd=changeset;node=070ad85ae2a6

diff [...] cnd/src/org/netbeans/modules/cnd/api/compilers/CompilerSetManager.java
--- a/cnd/src/org/netbeans/modules/cnd/api/compilers/CompilerSetManager.java Mon Jul 07 10:14:57 2008 -0700
+++ b/cnd/src/org/netbeans/modules/cnd/api/compilers/CompilerSetManager.java Mon Jul 07 17:45:38 2008 -0700
@@ -664,7 +664,7 @@ public class CompilerSetManager implemen
path = Path.findCommand("dbx"); // NOI18N
}
if (path != null)
- cs.addNewTool(IpeUtils.getBaseName(path), IpeUtils.getDirName(path), Tool.DebuggerTool); // NOI18N
+ cs.addNewTool(IpeUtils.getBaseName(path), path, Tool.DebuggerTool); // NOI18N
}
if (cs.getTool(Tool.DebuggerTool) == null) {
cs.addTool("", "", Tool.DebuggerTool); // NOI18N