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 224908

Summary: Can't pause NiosII GDB which uses SIGTRAP
Product: cnd Reporter: Arkona_MatthiasMann
Component: DebuggerAssignee: henk89
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Debug Console from Netbeans

Description Arkona_MatthiasMann 2013-01-15 13:17:43 UTC
Created attachment 130233 [details]
Debug Console from Netbeans

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".

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.

This might be similar to bug 224840
Comment 1 Egor Ushakov 2013-04-30 13:41:05 UTC
really a duplicate, let's keep all comments regarding the issue in one place, I will add a reference into bug 224840

*** This bug has been marked as a duplicate of bug 224840 ***