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.
Summary: | gdbserver: pause and breakpoint does not work for a running code, OS is Windows 7. | ||
---|---|---|---|
Product: | cnd | Reporter: | nitishp |
Component: | Debugger | Assignee: | Maria Tishkova <mromashova> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
C Program containing infinte while loop without any printf statements.
C program with infinite loop with printf statements MinGw Gdb-GdbServer (locally) log for debugWithoutPrintf.c using externalTerminal MinGw Gdb-Gdbserver(locally)log for debugWithPrintf using internalTerminal MinGw Gdb-GdbSever (locally) log for debugWithoutPrintf using internalTerminal MinGw Gdb-norma local debugging log for debugWithPrintf.c using internalTerminal |
Description
nitishp
2014-11-13 10:32:56 UTC
This bug was observed in netbeans 7.4, 8.0 and 8.0.1 Any updates regarding this issue? Is there any updates regarding this bug? Any workarounds would be gladly appreciated. Created attachment 151196 [details]
C Program containing infinte while loop without any printf statements.
Created attachment 151197 [details]
C program with infinite loop with printf statements
Created attachment 151198 [details]
MinGw Gdb-GdbServer (locally) log for debugWithoutPrintf.c using externalTerminal
Created attachment 151199 [details]
MinGw Gdb-Gdbserver(locally)log for debugWithPrintf using internalTerminal
Created attachment 151200 [details]
MinGw Gdb-GdbSever (locally) log for debugWithoutPrintf using internalTerminal
Created attachment 151201 [details]
MinGw Gdb-norma local debugging log for debugWithPrintf.c using internalTerminal
I have currently provided the issue logs corresponding to MinGw, I do not have the setup of cygwin and arm-none-eabi-gdb.exe for providing the log files however I know both suffer from the same sort of issues. Debugging steps done on a program that runs a infinite while loop (program is attached below) Prerequisite: When debugging is started, the code runs continuously without any breakpoints Local debugging (without gdbserver): -------------------------------------------- Using Internal terminal: First program debugWithoutPrintf.c works fine. For second program debugWithPrintf.c (there is a printf being printed in the code) Pause button does not work Breakpoint addition does not work. Log file: gdb-normalDebugging-MinGw-debugWithPrintf-internalTerminal.log Using External terminal: Both debugWithPrintf.c and debugWithoutPrintf.c works fine. Using Standard output: Both debugWithPrintf.c and debugWithoutPrintf.c works fine. Debugging locally using MinGw-gdbserver: ---------------------------------------------------- Using Internal terminal: First program debugWithoutPrintf.c: Pause button does not work Breakpoint addition does not work. Error in terminal: C:\MinGW\bin>gdbserver.exe localhost:3333 D:\programs\DebugWithoutPrintf\dist\Debug\MinGW-Windows\debugwithoutprintf.exe Process D:\programs\DebugWithoutPrintf\dist\Debug\MinGW-Windows\debugwithoutprintf.exe created; pid = 2852 Listening on port 3333 Remote debugging from host 127.0.0.1 input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') Log file: : gdb-gdbSeverLocal-MinGw-debugWithoutPrintf-internalTerminal.log Second program debugWithPrintf.c: Pause button does not work Breakpoint addition does not work. Error in terminal: C:\MinGW\bin>gdbserver.exe localhost:3333 D:\programs\DebugWithoutPrintf\dist\Debug\MinGW-Windows\debugwithoutprintf.exe Process D:\programs\DebugWithoutPrintf\dist\Debug\MinGW-Windows\debugwithoutprintf.exe created; pid = 2852 Listening on port 3333 Remote debugging from host 127.0.0.1 input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') input_interrupt, count = -1 c = 0 (' ') Log file: gdb-gdbServerLocal-MinGw-debugWithPrintf-internalTerminal.log The same problem occurs for external and standard output Log file: gdb-gdbServerLocal-MinGw-debugWithoutPrintf-externalTerminal.log I have attached all the log files and the c files. |