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]
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
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
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:
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:
verified in patch3
Patch 3 is out! Please update your installations!
*** Bug 197792 has been marked as a duplicate of this bug. ***