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 182316

Summary: BP does not work in attached process with gdb 7.0
Product: cnd Reporter: Alexander Pepin <apepin>
Component: DebuggerAssignee: Egor Ushakov <gorrus>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: gdb log

Description Alexander Pepin 2010-03-18 15:08:57 UTC
Ubuntu 9.10 is a main Linux supported platform for NB and by default it's provided with gdb 7.0 and it seems not to be easy to install gdb 6.8 there.

Steps to reproduce:
- create Quote sample
- set BP in line 123 (discount = getDiscounFor(customerName);)
- set Console type to Output window and switch profiler off
- start debugger
- enter any customer name, debugger stops at BP, it's OK
- finish debug session 
- run the project
- attach debugger
- enter any customer name
Result: Debugger does not stop at BP. It seems that attach was not completed correctly as Pause button is not enabled.
Comment 1 Alexander Pepin 2010-03-18 15:16:17 UTC
Created attachment 95384 [details]
gdb log
Comment 2 Egor Ushakov 2010-03-19 10:23:47 UTC
can be reproduced even with local attach with gdb 7.0
Comment 3 Egor Ushakov 2010-03-19 10:48:31 UTC
gdb 7.0 produces *stopped notification as a result of attach command, previous versions did not do that.
Comment 4 Egor Ushakov 2010-03-19 11:41:29 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/99c070802c98
Comment 5 Quality Engineering 2010-03-20 06:31:36 UTC
Integrated into 'main-golden', will be available in build *201003200200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/99c070802c98
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #182316 (BP does not work in attached process with gdb 7.0)