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 does not work on Linux | ||
---|---|---|---|
Product: | cnd | Reporter: | Egor Ushakov <gorrus> |
Component: | Debugger | Assignee: | Maria Tishkova <mromashova> |
Status: | NEW --- | ||
Severity: | normal | CC: | Arkona_MatthiasMann, sehughes |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 170488 | ||
Bug Blocks: |
Description
Egor Ushakov
2013-01-14 11:30:42 UTC
*** Bug 224908 has been marked as a duplicate of this bug. *** from the bug 224908: I'm using Netbeans on Linux to debug a NiosII (Softcore CPU from Altera) system. Product Version: NetBeans IDE Dev (Build 201301120001) Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21 System: Linux version 2.6.38-16-generic running on amd64; UTF-8; de_DE (nb) This uses a nios2-gdb-server which maintains the JTAG connection, and a nios2-elf-gdb together with the gdbserver plugin of Netbeans. The attach command is "remote 127.0.0.1:1234". The problem is that the pause button in Netbeans does not work. When I manually send a "kill -s INT <pid-of-nios2-elf-gdb>" Netbeans shows a "DS1008.elf - Signal Caught" pop up: Signal received: SIGTRAP (Trace/breakpoint trap) For program DS1008.elf, pid -1 After pressing "Discard & Pause" the program is paused and I can debug it as expected. I have this issue when using Netbeans 7.4 and Netbeans 8.0. My Setup is: Dev Platform.: Windows 7, gdb - STM 7.4 Target: STi7109 The PAUSE button does not work and I can not interrupt the the "Debugger Console" session using Ctrl-C. Note that it does work using other IDEs (Insight). Not sure what logs you need. Here is the debug console -- This log is saved to: C:\Users\user\AppData\Local\Temp\gdb-cmds2776695486252539249.log NB build: 201401290001 ~"GNU gdb (STMicroelectronics Base) 7.4-ST-1.0 [build Nov 5 2012]\n" ~"Copyright (C) 2012 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"--host=i686-pc-mingw32 --target=sh-superh-elf\".\nFor bug reporting instructions, please see:\n" ~"<<file://doc/docbug.htm> in the installation>.\n" (gdb) ~"Working directory C:\\n" (gdb) ... My guess is the SIGINT is being sent to the wrong gdb process. There are two, sh4gdb is setup in netbeans env, and sh4gdb spawns the other. I don't have any workaround of know how to send SIGINT via Windows a command: 26 4 776 2644 25 0.02 15036 sh4gdb 122 17 48368 52660 156 16.26 4632 sh-superh-elf-gdb (In reply to nathanh from comment #3) > I have this issue when using Netbeans 7.4 and Netbeans 8.0. > My Setup is: > Dev Platform.: Windows 7, gdb - STM 7.4 > Target: STi7109 > The PAUSE button does not work and I can not interrupt the the "Debugger > Console" session using Ctrl-C. Note that it does work using other IDEs > (Insight). > Not sure what logs you need. Here is the debug console > > -- > > This log is saved to: > C:\Users\user\AppData\Local\Temp\gdb-cmds2776695486252539249.log > NB build: 201401290001 > ~"GNU gdb (STMicroelectronics Base) 7.4-ST-1.0 [build Nov 5 2012]\n" > ~"Copyright (C) 2012 Free Software Foundation, Inc.\n" > ~"License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to > change and redistribute it.\nThere is NO WARRANTY, to the extent permitted > by law. Type \"show copying\"\nand \"show warranty\" for details.\n" > ~"This GDB was configured as \"--host=i686-pc-mingw32 > --target=sh-superh-elf\".\nFor bug reporting instructions, please see:\n" > ~"<<file://doc/docbug.htm> in the installation>.\n" > (gdb) > ~"Working directory C:\\n" > (gdb) > > ... Same bug on Win7 x64 Netbeans 7.4 and NetBeans IDE Build 201402030001. I also have Eclipse on the same machine using same gdb and GDBserver ant everything works correctly. I can upload gdb logs from Eclipse debug session if they are of any use. It wuold be great to switch from Eclipse to Netbeans for embedded development, but so far this bug ruins all debugging process :( If this issue affects you, make sure to vote on this bug to raise the priority. Could you please provide me with logs from both NetBeans and Eclipse sessions? We are using NetBeans for ARM Cotex M3 development and remote debugging and I can report that this bug affects us too. I am using Texane st-link and the gdbserver plugin to do hardware step debugging on the ARM target (the ST-LINK SWD hardware debugger). I'd be happy to follow any instructions to generate log files. (In reply to elcojacobs from comment #8) > We are using NetBeans for ARM Cotex M3 development and remote debugging and > I can report that this bug affects us too. > > I am using Texane st-link and the gdbserver plugin to do hardware step > debugging on the ARM target (the ST-LINK SWD hardware debugger). I'd be > happy to follow any instructions to generate log files. Am I right that you have troubles with debugging on Windows? (In reply to henk89 from comment #9) > (In reply to elcojacobs from comment #8) > > We are using NetBeans for ARM Cotex M3 development and remote debugging and > > I can report that this bug affects us too. > > > > I am using Texane st-link and the gdbserver plugin to do hardware step > > debugging on the ARM target (the ST-LINK SWD hardware debugger). I'd be > > happy to follow any instructions to generate log files. > > Am I right that you have troubles with debugging on Windows? Yes, that's correct - on Windows. (Although it says Linux at the top of this bug, comment #3 also mentions windows, so we figured it was worthwhile giving you another datapoint.) I hope you are able to look into it - it would be awesome to be able to pause the debugger. But if that's not possible, some pointers where we could look in the code to attempt a fix would be great! |