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.
http://forums.netbeans.org/viewtopic.php?p=87453#87453 It seems that with GDB 7.2 on Ubuntu, passing debug program arguments no longer works. This is a serious inconvenience (takes away a lot from debugging capability). Thanks.
Arguments doesn't appear if default GDB (7.2) is selected. But if I use GDB7.1 from http://ftp.gnu.org/gnu/gdb, then arguments appears.
Created attachment 102355 [details] gdb log
It's not a P1, it should be fixed in the current development time frame.
before 7.2 -exec-run accepted program arguments... Anyway that was not in the documentation, so I'll fix that to use -exec-arguments
fixed in: http://hg.netbeans.org/cnd-main/rev/994806f86686
I am using NetBeans 6.9.1 on Windows XP Professional, and seems that the bug also happens here (not just on Ubuntu). The most recent version of CDN (1.9.2 Build 201007282301) seems to have been built before the bugfix was released.
(In reply to comment #6) Additional information: I am using MinGW, and gdb version is 7.2; a co-worker installed gdb 7.1 and has the debug args working. So, the issue is in gdb 7.2 and also on Windows, not just Ubuntu. How do I update CND in Windows?
they have changed commands syntax slightly in gdb 7.2
(In reply to comment #8) > they have changed commands syntax slightly in gdb 7.2 I see... does the patch work for both gdb versions? I see there is a 6.9.1-1 package for Linux, does it have the patch for this bug? And, what about Windows? Could it work if I copy the org-netbeans-modules-cnd-debugger-gdb.jar from that package? Or going back to gdb 7.1 is still the best solution (on windows, at least)?
yes, patch works for all gdb versions
link to the code changes is here in the comments, I'm not sure how and where to get bits with these changes...
I just installed 7.0M2, and I still can't get program args when debugging w/ gdb 7.2! Thanks Egor, I will try to rebuild debugger-gdb.jar, or at least ckeck if the 7.0M2 version contains your patch.
*** Bug 192102 has been marked as a duplicate of this bug. ***
Marked as a candidate to next patch
Egor, please transplant fix into clone releases / branch release692, see http://wiki.netbeans.org/NetBeansPatchesProcess#How_to_proceed_with_patch for details by Tuesday 7th of December 2010. Thanks in advance.
integrated into releases/release692 with: http://hg.netbeans.org/releases/rev/b1c40c851892
do we need to change spec versions?
(In reply to comment #17) > do we need to change spec versions? Yes Egor, please do so. Thanks in advance.
spec versions increased in: http://hg.netbeans.org/releases/rev/86141f1ade45
verified in patch3
Patch 3 is out! Please update your installations!
*** Bug 197792 has been marked as a duplicate of this bug. ***