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 156535 - error in lunching gdb
Summary: error in lunching gdb
Status: RESOLVED DUPLICATE of bug 151481
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-09 15:06 UTC by paolo_c1
Modified: 2009-06-25 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description paolo_c1 2009-01-09 15:06:52 UTC
Working in Windows (both XP and Vista), when I try to launch gdb debugger (Debug main project), I get the message
"Launching" in the Debugger console window, then nothing happens any more.
NetBeans log file contains the following rows:

GRAVE [org.openide.util.RequestProcessor]
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
	at java.lang.String.charAt(Unknown Source)
	at org.netbeans.modules.cnd.debugger.gdb.GdbDebugger.createShareTab(GdbDebugger.java:1781)
	at org.netbeans.modules.cnd.debugger.gdb.GdbDebugger.resultRecord(GdbDebugger.java:1060)
	at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine.processMessage(GdbProxyEngine.java:358)
	at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine.access$100(GdbProxyEngine.java:77)
	at org.netbeans.modules.cnd.debugger.gdb.proxy.GdbProxyEngine$2.run(GdbProxyEngine.java:239)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)



While gdb log file seems to be correct:

Debugger Command: [C:\MinGW\bin\gdb.exe, --nw, --silent, --interpreter=mi]
Env[1]: [Path=;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\ATI
Technologies\ATI.ACE\Core-Static;c:\Programmi\File comuni\Roxio Shared\DLLShared\;c:\Programmi\File comuni\Roxio
Shared\DLLShared\;c:\Programmi\File comuni\Roxio
Shared\9.0\DLLShared\;C:\Programmi\Hewlett-Packard\IAM\bin;C:\Programmi\SSH Communications Security\SSH Secure Shell]
workingDirectory: X:/sw_coldfire/busi/Arguments_1/
================================================
100-gdb-version
101-environment-directory  "X:/sw_coldfire/busi/Arguments_1/"
102-gdb-show language
103-gdb-set print repeat 10
104-file-exec-and-symbols X:/sw_coldfire/busi/Arguments_1/dist/Debug/MinGW-Windows/arguments_1
105set new-console
106-break-insert -t main
107-break-insert -t WinMain
108-data-list-register-names 
109-exec-run "arg 1" "arg 2" "arg 3" "arg 4"
110info threads
100~"GNU gdb 6.3\n"
100~"Copyright 2004 Free Software Foundation, Inc.\n"
100~"GDB is free software, covered by the GNU General Public License, and you are\n"
100~"welcome to change it and/or distribute copies of it under certain conditions.\n"
100~"Type \"show copying\" to see the conditions.\n"
100~"There is absolutely no warranty for GDB.  Type \"show warranty\" for details.\n"
100~"This GDB was configured as \"i686-pc-mingw32\".\n"
100^done
101^done,source-path="X:/sw_coldfire/busi/Arguments_1;$cdir;$cwd"
102^done,value="auto; currently c"
103^done
104^done
105&"set new-console\n"
105^done
106^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0040130a",func="main",file="src/args.c",line="46",times="0"}
107^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x004012e3",func="WinMain",file="src/args.c",line="45",times="0"}
108^done,register-names=["eax","ecx","edx","ebx","esp","ebp","esi","edi","eip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","mxcsr","mm0","mm1","mm2","mm3","mm4","mm5","mm6","mm7"]
109^running
109*stopped,thread-id="1",frame={addr="0x0040130a",func="main",args=[{name="argc",value="5"},{name="argv",value="0x3e3d50"}],file="src/args.c",line="46"}
111info share
112-break-insert X:/sw_coldfire/busi/gb1_2_pc/btsr_ktf.c:355
113-break-insert X:/sw_coldfire/busi/gb1_2_netbeans/btsr_ktf.c:356
114-break-insert X:/sw_coldfire/busi/Arguments_1/src/args.c:50
115-break-insert X:/sw_coldfire/busi/Arguments_1/src/args.c:51
110&"info threads\n"
110~"* 1 thread 3356.0x360  "
110^done,frame={func="main",args=[{name="argc",value="5"},{name="argv",value="0x3e3d50"}],file="src/args.c",line="46"}
111&"info share\n"
111~"\n"
111~"   DLL Name                          Load Address\n"
111~"ntdll.dll                         7c911000\n"
111~"C:\\WINDOWS\\system32\\kernel32.dll  7c801000\n"
111~"C:\\WINDOWS\\system32\\msvcrt.dll    77be1000\n"
111^done
Comment 1 _ gordonp 2009-01-09 16:28:46 UTC
Already fixed in trunk.

*** This issue has been marked as a duplicate of 151481 ***