# HG changeset patch # User Gordon Prieur # Date 1235000038 28800 # Node ID aba22d671de2d9ebbcc8d1d2b3daeadc6e481d76 # Parent 111edb946f7cef46e09948bc6262b88e811fb6de Changed a hard-coded path used in debugging a 2nd gdb module from /usr/local/bin/gdb2 to gdb2. I create (via a script) a cnd.debugger.gdb2 module to help fixig multi-debugger issues. It runs a "gdb2" command instead of "gdb" because that lets me see which module did the debugging when looking at a gdb log file. diff -r 111edb946f7c -r aba22d671de2 cnd.debugger.gdb/src/org/netbeans/modules/cnd/debugger/gdb/profiles/GdbProfile.java --- a/cnd.debugger.gdb/src/org/netbeans/modules/cnd/debugger/gdb/profiles/GdbProfile.java Fri Feb 13 00:25:19 2009 +0300 +++ b/cnd.debugger.gdb/src/org/netbeans/modules/cnd/debugger/gdb/profiles/GdbProfile.java Wed Feb 18 15:33:58 2009 -0800 @@ -101,7 +101,11 @@ if (GdbDebugger.isUnitTest()) { gdb_command = "gdb"; // NOI18N } else { - gdb_command = CppSettings.getDefault().getGdbName(); + if (getClass().getName().contains("gd" + "b2")) { // NOI18N - Debugging code only... + gdb_command = "gd" + "b2"; // NOI18N - DEBUG tool for debugger co-existance development + } else { + gdb_command = CppSettings.getDefault().getGdbName(); + } } } } @@ -136,7 +140,7 @@ public String getGdbPath(MakeConfiguration conf, boolean canAskUser) { if (getClass().getName().contains("gd" + "b2")) { // NOI18N - Debugging code only... - return "/usr/local/bin/gd" + "b2"; // NOI18N - DEBUG tool for debugger co-existance development + return "gd" + "b2"; // NOI18N - DEBUG tool for debugger co-existance development } CompilerSet2Configuration csconf = conf.getCompilerSet(); CompilerSet cs;