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 271691 - NetBeans does not pass executable arguments when debuggin with GDB 8.0
Summary: NetBeans does not pass executable arguments when debuggin with GDB 8.0
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-24 18:03 UTC by titosanxez
Modified: 2017-10-26 14:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
GDB log example associated to the issue. (12.12 KB, application/octet-stream)
2017-10-26 14:36 UTC, titosanxez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description titosanxez 2017-10-24 18:03:06 UTC

    
Comment 1 titosanxez 2017-10-24 18:04:39 UTC
It appears that the application arguments specified in the GDB command are not passed properly to the GDB command.

Note I'm using GDB 8 because it's the only official version that builds on macOS Sierra
Comment 2 soldatov 2017-10-24 20:09:22 UTC
Can you attach GDB log? http://wiki.netbeans.org/GdbLog
Comment 3 Maria Tishkova 2017-10-25 19:32:20 UTC
Please provide GDB log and more details
Comment 4 titosanxez 2017-10-26 14:36:25 UTC
Created attachment 165356 [details]
GDB log example associated to the issue.
Comment 5 titosanxez 2017-10-26 14:44:25 UTC
I'll try to explain with a bit more detail what I'm experiencing:

- Setup: MacOS Sierra 10.12.6, NetBeans 8.2, Clang 9, GDB 8.
- Project: Generation of a Test executable. This program receives several command line options and it exits with an 'usage' message if the provided option is unrecognized.

Experienced issue in NetBeans: The program exits promptly when debugging from NetBeans. The debug command points to the program executable and provides some valid arguments. The NetBeans output shows the program 'usage' as if an invalid option was provided.

I have tried with other programs, and other arguments combinations but the result is the same. It only seems to work when no program options are specified. Also, it seems supports for GDB 8 is not smooth. I was experiencing other issues as well: ignored breakpoints in dynamic libraries, unexpected termination, ignoring step command...
Comment 6 titosanxez 2017-10-26 14:47:22 UTC
This may not be the forum to ask this but I'm a bit frustrated with the experience of NetBeans in Macos Sierra. I've been using NB for many years but for the past year I haven't been able to successfully compile and debug an OS X application with Netbeans. I have tried several versions of GDB and also lldb. Is there any other recommended alternative? are you guys planning to improve this support for next version?