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 207861 - Errors in .gdbinit are silently ignored
Summary: Errors in .gdbinit are silently ignored
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-28 05:38 UTC by gsmcmullin
Modified: 2016-07-06 14:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gsmcmullin 2012-01-28 05:38:37 UTC
NetBeans executes the .gdbinit script with the -x option on the command line.
If there are errors while executing the script, GDB outputs:
&".gdbinit:4: Error in sourced command file:\n"

Although this may be seen the the Debugger Console, it does not raise any error or warning message to the user.  You also typically need to scroll back over other startup commands sent by NetBeans to see this.

It would be better for NetBeans to read the .gdbinit and send the commands to GDB.  It would then receive a "^error" responses and could provide better information to the user.

In the case of remote debugging with gdbserver, the .gdbinit commands should also be sent after connecting to the server.