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

Summary: Errors in .gdbinit are silently ignored
Product: cnd Reporter: gsmcmullin
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

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.