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.
Created attachment 135123 [details] gdb log, failing on osx This might be a dublicate of #194661, but adding logs. I am debugging a JNI library under ubuntu linux and OS X mountain lion. Therefor I use the "attach debugger" feature to attach to a JVM instance. At this time it is assured that the library is already loaded by the JVM. On linux everything works like a charm (see gdb-linux.log). On OS X before gdb actually attaches to the process, the executable name is not resolved correctly. The JVM arguments are treated as part of the file name. Therefor gdb fails with "No such file or directory". (gdb-osx-ml.log) The issue occurs when using remote debugging (netbeans on linux, target OS X) as well as on localhost debug under OS X.
Created attachment 135124 [details] gdb log, working on linux
Created attachment 135349 [details] patched NativeDebuggerManager to strip process arguments
agree with the patch, fixed in: http://hg.netbeans.org/cnd-main/rev/0f839a4a0992
Integrated into 'main-golden', will be available in build *201306202301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0f839a4a0992 User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #230518 - GDB attach to JVM fails (JNI debug): No such file or directory